Pretty Good Privacy: Who Can Read It, Who Signed It?
An email can raise two different security questions: who can read it, and which key signed its contents? Encryption answers the first. A digital signature helps answer the second. PGP brings those capabilities together, but they remain separate operations.
PGP stands for Pretty Good Privacy, the name of the original software. OpenPGP is the standardized format for compatible encrypted and signed messages and files. GnuPG, also called GPG, is a separate program that implements OpenPGP.
These names belong to the same family, but they don't name one interchangeable product. The GnuPG project describes its own implementation, while the OpenPGP standard specifies the format. A format's latest features aren't automatically available in every program that uses an earlier version.
PGP Encryption in Three Minutes
One key protects the content; others protect access to it
To encrypt a message for recipients using OpenPGP public-key encryption, the sending program first creates a fresh session key. This is secret data used by the encryption method for that message.
The program encrypts the content with a symmetric method, meaning the same secret key is used to protect and recover the content. It then protects the session key separately for each recipient using that recipient's public key, the shareable half of a related key pair.
Each recipient has a corresponding private key, which must remain under their control. That private key lets the recipient recover the protected session key. The session key then unlocks the message content.
This two-method design is called hybrid encryption. The public-key operation doesn't have to encrypt the entire email directly. It protects access to the secret that does the bulk-content work.
For a message addressed to several recipients, the content can be protected once while the same content key is separately made available to each intended recipient. Each uses their own private key to recover it.
Signing makes a different promise
A sender can also use a private signing key to create a digital signature for the content. A recipient checks that signature with the corresponding public key.
The check connects the signed data with that signing key. Changing the signed content causes it to fail the original signature check. The signature doesn't, by itself, hide the message; OpenPGP permits signing without encryption, encryption without signing, or both together.
A successful signature check isn't independent proof that a particular human wrote every word. It also doesn't establish that an attachment is safe to run. Those conclusions require more than checking the relationship between a key, a signature and the signed bytes.
- Make a stolen password useless without the key in your hand.
- Sign in with a tap instead of typing a code.
- Protect Google, Microsoft, Apple and more than 1,000 other accounts.
The wrong public key can work perfectly
Suppose someone sends you a public key labeled with a colleague's name, but it belongs to an attacker. Encrypting to that key can succeed exactly as designed. The attacker, holding the matching private key, is the person able to recover the message secret.
A name attached to a key is therefore not enough. A fingerprint is a compact value derived from the key that can be compared with a value obtained from the actual owner through a trusted way of contacting them.
The GNU Privacy Handbook explains verifying a key's fingerprint with its owner. Its relevant principle is to establish that the key belongs to the intended person, rather than trusting a label supplied alongside it.
The same care applies after a key is selected. Usable private keys need protection, and their owners need a plan for loss. Stronger mathematics alone cannot prevent key theft or choose the intended recipient for you.
Digital Signatures: What a Verified File Actually Tells You

Hybrid Encryption: Two Kinds of Keys, One Protected Message

Phil Zimmermann: Giving Away PGP and Facing an Export Probe

QUOTE:
"Amateurs hack systems, professionals hack people."
