Email security

What Is PGP? How OpenPGP Encryption and Signing Work

PGP lets you encrypt an email so only the intended recipient can read it, and sign it so they know it really came from you. Here is how it works, thirty years on.

Cysoro Security TeamPublished · 8 min read
EMAIL SECURITY WHAT IS PGP? ENCRYPTION AND SIGNING, EXPLAINED Public-key cryptography for email and files. ENCRYPTED Signed and sealed cysoro.com
Quick answer

PGP, short for Pretty Good Privacy, is a system for encrypting and digitally signing email and files. Created by Phil Zimmermann in 1991 and standardized as OpenPGP in RFC 9580, it uses public-key cryptography: anyone can encrypt a message with your public key, but only your private key can decrypt it, and only you can sign with that private key.

Key takeaways

  • PGP encrypts email and files with public-key cryptography, so only the holder of the matching private key can read a message.
  • Digital signatures prove who sent a message and that it was not changed in transit.
  • The modern standard is OpenPGP (RFC 9580); the free implementation most people use is GnuPG.

Most email travels like a postcard: anyone who handles it along the way can read it. PGP turns the postcard into a sealed letter that only the intended recipient can open — and adds a wax seal that proves who sent it. It has done that job since 1991, and it is still the standard for end-to-end email encryption.

What is PGP?

PGP, short for Pretty Good Privacy, is a system for encrypting and digitally signing email and files. It was created by Phil Zimmermann in 1991 and is now an open standard called OpenPGP, specified in RFC 9580, published by the IETF in July 2024.

PGP gives you two things at once. Encryption keeps a message readable only by its intended recipient, even if it passes through servers you do not trust. Digital signatures prove the message really came from you and was not altered on the way. You can use either one on its own, or both together.

The standard is deliberately vendor-neutral. RFC 9580 defines the message format, the key format and the algorithms, so a message encrypted with one OpenPGP program can be decrypted with any other. The free implementation most people use is GnuPG, the GNU Privacy Guard, which provides the gpg command-line tool and the libraries behind many email clients.

How does PGP encryption work?

PGP encryption is hybrid: it combines the speed of symmetric encryption with the convenience of public-key encryption. A random one-time session key encrypts the message itself, and that session key is then encrypted with each recipient's public key.

The sequence, as RFC 9580 describes it, is: the sender creates the message, generates a random session key, encrypts the session key with the recipient's public key, and encrypts the message with a message key derived from the session key. The recipient reverses the process: their private key decrypts the session key, and the session key decrypts the message. Nobody else can do either step, because the private key never leaves the recipient.

Because the message is encrypted with a fresh random session key, the same message sent twice looks completely different. And because the session key is encrypted separately for each recipient, one message can be addressed to several people without re-encrypting the whole body. The encrypted message can be wrapped in ASCII Armor — a base64 encoding — so it survives email systems that only handle plain text.

How hybrid PGP encryption works1. Random session keyfresh key, used once,never sent in the clear2. Message encryptedfast symmetric cipher,key from the session key3. Session key lockedencrypted with therecipient's public key↓4. Private key unlocksonly the recipient'sprivate key opens it5. Session key recoveredthe same key thesender generated6. Message decryptedreadable only by theintended recipientThe private key never travels. Lose it, and the message is gone for good.
How hybrid PGP encryption works: a fast symmetric cipher for the message, public-key cryptography for the session key. Illustration by Cysoro.

What are public and private keys?

A PGP key pair has two halves. The public key you share freely — on your website, in your email signature, on a keyserver. Anyone can use it to encrypt a message to you or to verify your signature. The private key you keep secret, protected by a passphrase, on a device you control.

The two halves are mathematically linked: anything encrypted with the public key can only be decrypted with the private key, and anything signed with the private key can be verified with the public key. That asymmetry is the whole trick. Your public key is not a secret, and publishing it widely is the point — it is how people find you and trust that a message to you stays private.

Each key has a key ID, an 8-octet value that RFC 9580 says should not be assumed to be unique, and a fingerprint, which is far more likely to be unique. When you verify someone's key, compare the fingerprint character by character over a channel you trust — a phone call, a meeting, a page you control. A key you downloaded from a random server is only as trustworthy as that server.

How do digital signatures work in PGP?

A digital signature proves who wrote a message and that nobody changed it afterward. To sign, your software hashes the message — computing a short digest that changes completely if even one character changes — and encrypts that digest with your private key. The signature travels with the message.

To verify, the recipient's software decrypts the signature with your public key to recover the digest, re-hashes the message it received, and compares the two. If they match, the message is intact and could only have been signed by the holder of your private key. If they differ, the message was altered or signed by someone else.

Signing matters even when you do not encrypt. A signed software release, for example, lets anyone confirm it really came from the project and was not tampered with in transit. That is why open-source projects routinely publish PGP-signed release files and checksums.

PGP vs OpenPGP vs GnuPG: what is the difference?

The three names describe three different things, and mixing them up causes most of the confusion about PGP. PGP is the original program and the technology's name. OpenPGP is the open standard. GnuPG is the most widely used free implementation of that standard.

NameWhat it isWho runs itCost
PGPThe original program and the technology's namePhil Zimmermann, 1991; later commercial productsCommercial
OpenPGPThe open standard: message format, key format, algorithmsIETF; current spec RFC 9580 (2024)Free standard
GnuPGThe free implementation most people actually runGNU Project; gpg command-line toolFree, open source

The standard has evolved through four RFCs: RFC 1991 (1996), RFC 2440 (1998), RFC 4880 (2007) and RFC 9580 (2024), which obsoletes the earlier three. RFC 9580 modernized the cryptography: implementations must not generate signatures with MD5, SHA-1 or RIPEMD-160, and the standard advises against IDEA, TripleDES and CAST5, while adding newer options such as Argon2 for protecting private keys with a passphrase.

How does the web of trust work?

PGP does not use a central authority to vouch for keys. Instead it uses a web of trust: users sign each other's keys to say "I have checked this key, and it belongs to this person". If you trust Alice, and Alice has signed Bob's key, you have reason to trust that Bob's key is genuine — with the level of trust depending on how much you trust Alice's judgment.

This differs from the certificate model used by S/MIME and the web's TLS system, where a certificate authority issues certificates and everyone trusts the authority. The web of trust is decentralized and resilient, but it is also harder to use: trust has to be built person by person, and a key signed by nobody is just an unverified claim.

In practice, most people verify keys by comparing fingerprints directly rather than relying on the web of trust. If you are exchanging sensitive email with a colleague, the simplest trustworthy check is to read the fingerprint to them on a call you already trust.

Where is PGP still used in 2026?

PGP is still the default for encrypted email among journalists, activists, security researchers and open-source developers — the people who need end-to-end encryption that no provider can switch off. It is also the standard way to sign software releases, verify package downloads and encrypt sensitive files before they are stored or shared.

Some email services build PGP in for you. Proton Mail, for example, uses PGP-compatible encryption under the hood, so messages between Proton users are end-to-end encrypted without either side touching a key. Standalone PGP remains the choice when you want the same protection across any email provider, including your own domain.

What PGP does not do is protect metadata. The sender, recipient, subject line and time of an email are usually sent unencrypted, even when the body is PGP-encrypted. If hiding who talks to whom matters, PGP alone is not enough — that is a job for tools designed for anonymous communication.

What are PGP's limits and common mistakes?

The biggest limit is usability. PGP works well once it is set up, but key management — generating keys, backing them up, revoking them when a device is lost, verifying other people's keys — is manual work that most people will not do reliably. That is why most of the world uses encrypted messengers instead.

Common mistakes are easy to avoid once you know them. First, never lose your private key: without it, every message encrypted to you is unreadable forever, so back it up somewhere safe and offline. Second, use a strong passphrase on the private key, because a stolen key file without a passphrase is a stolen identity.

Third, keep your software current — the 2018 EFAIL attacks did not break PGP's cryptography, but they showed that email clients which mishandled decrypted content could leak plaintext. Fourth, check fingerprints before trusting a key you found online.

Finally, remember that PGP encrypts the message body, not the envelope. Do not put anything sensitive in the subject line, and do not assume an encrypted email is anonymous. For a deeper look at how email authentication fits alongside encryption, see our guide to what is DMARC.

Three checks before you trust a PGP key1Compare thefingerprintcharacter by character,over a trusted channel2Confirm theownera key signed by nobodyis an unverified claim3Check it iscurrentmodern algorithms, notMD5, SHA-1 or 1024-bit RSAA key you have not verified is only as trustworthy as the server it came from.
Three checks before you trust a PGP key. Illustration by Cysoro.

How do I start using PGP?

Install GnuPG, generate a key pair, and publish your public key where people can find it. On most systems this is a few commands: gpg --full-generate-key walks you through choosing a key type and expiry, and gpg --export --armor your@email produces the public key block to share.

Protect the private key with a strong passphrase — our free password generator can create one — and make an offline backup of the key and its revocation certificate the same day. A revocation certificate lets you cancel a key if the private key is ever lost or stolen, so generate it while you still can.

Then add PGP support to your email client. Thunderbird has OpenPGP built in, and plugins exist for other clients. Send a signed test message to a friend who already uses PGP, verify each other's fingerprints, and you are done. Start with signing, which is low-risk, and move to encryption once you are comfortable.

The bottom line

PGP is the oldest practical system for end-to-end email encryption, and it is still the one that gives you the most control: your keys, your software, no provider in the middle. RFC 9580 keeps the cryptography current, and GnuPG makes it free. The cost is manual key management, which is why it remains a tool for people who need strong guarantees rather than a default for everyone.

If your goal is simpler — making sure your everyday email is not trivially readable — start with the basics: a strong unique password, two-factor authentication, and the checks in our guide to what is DMARC. Add PGP when you have something that needs to stay private even from the people who run your email.

Frequently asked questions

What does PGP stand for?

PGP stands for Pretty Good Privacy. It was created by Phil Zimmermann in 1991 and is now standardized as OpenPGP, with the current specification published as RFC 9580 in July 2024.

Is PGP the same as OpenPGP?

PGP is the original program and the name of the technology. OpenPGP is the open standard that describes the format, so different programs such as GnuPG can work together. Anything that follows OpenPGP can read and write PGP-encrypted messages.

How does PGP encryption work?

PGP uses hybrid encryption. A random one-time session key encrypts the message with a fast symmetric cipher, and that session key is then encrypted with each recipient's public key. Only the recipient's private key can recover the session key and read the message.

Is PGP still secure in 2026?

Yes, when used with current algorithms. RFC 9580 deprecated outdated algorithms including MD5, SHA-1, IDEA, 3DES and CAST5. The main risks today are weak keys, mishandled private keys and email clients that leak plaintext, not the cryptography itself.

Do I need PGP if I already use encrypted email?

It depends on what you need to protect. TLS encrypts mail in transit, but your provider can still read it. PGP encrypts the message itself, so it stays unreadable to providers, backups and anyone who intercepts it. For most people, a provider that offers end-to-end encryption is simpler.

What is the difference between PGP and S/MIME?

Both encrypt and sign email. PGP uses a decentralized web of trust in which users vouch for each other's keys, while S/MIME relies on certificates issued by a certificate authority. PGP is common among individuals and open-source projects; S/MIME is more common inside companies.

Sources

  1. IETF — RFC 9580: OpenPGP
  2. GnuPG — The GNU Privacy Guard
  3. Wikipedia — Pretty Good Privacy
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against RFC 9580, the OpenPGP standard, and the GnuPG project site.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free