PGP encryption protects email and files with a pair of keys: a public key anyone can use to encrypt a message to you, and a private key only you hold to decrypt it. It also signs messages so recipients can confirm they came from you and were not changed. The modern standard is OpenPGP, defined in RFC 9580, and free tools such as GnuPG implement it on every major platform.
Key takeaways
- PGP uses public-key encryption for the message key and symmetric encryption for the message itself, which keeps it fast and secure.
- A digital signature proves who sent a message and that it was not altered, but it does not hide who the sender and recipient are.
- PGP only works if both sides use it and guard their private keys, so it suits sensitive one-to-one email rather than everyday mail.
Most email travels in the open. Your provider can read it, a breached server can leak it, and anyone watching the network can collect it. PGP encryption changes that: it scrambles a message so only the person holding the matching private key can read it.
What is PGP encryption?
PGP encryption is a way to scramble email and files so only the intended recipient can read them, and to sign messages so the recipient can prove who sent them. It was created in 1991 by Phil Zimmermann and is now defined by the open OpenPGP standard.
PGP stands for Pretty Good Privacy. It is not a single product. It is a set of rules for encrypting, signing, compressing and encoding messages, so different programs that follow the same standard can exchange secure mail with each other.
The standard that defines those rules is OpenPGP. The original version was published as RFC 4880 in 2007, and the current version, RFC 9580, was published in 2024. It replaces RFC 4880 and adds modern elliptic-curve cryptography and stronger key protection.
You will meet PGP in a few places: journalists protecting sources, lawyers and doctors sending sensitive documents, activists working under surveillance, and anyone who wants email that even their own mail provider cannot read. It is a niche tool, but for those uses there is still nothing quite like it.
How does PGP encryption work?
PGP uses a hybrid system. Each message gets a fresh random symmetric key that scrambles the message quickly, and that key is then locked with the recipient's public key, so only the recipient's private key can unlock it and read the message.
Here is the sequence, exactly as the OpenPGP standard describes it. First, the sender writes the message. Second, the sender's software creates a random session key for that one message. Third, it encrypts the message with that session key. Fourth, it encrypts the session key itself with the recipient's public key. The recipient reverses the process: their private key unlocks the session key, and the session key unlocks the message.
Signing works in the other direction. The sender's software makes a hash, a short fixed-length fingerprint, of the message, then encrypts that hash with the sender's private key. That is the signature. The recipient recomputes the hash and checks it against the signature using the sender's public key. If they match, the message is genuine and unchanged.
This design solves two problems at once. Symmetric encryption alone is fast but needs a shared secret, which is hard to exchange safely. Public-key encryption alone is slow for long messages. PGP uses each where it is strongest: the public key protects a tiny session key, and the symmetric key does the heavy work.
What is the difference between PGP, S/MIME and TLS?
PGP and S/MIME both provide end-to-end email encryption, while TLS only protects mail in transit between servers. The three solve different problems, and confusing them is the most common mistake people make when they start with email encryption.
| Protection | PGP / OpenPGP | S/MIME | TLS |
|---|---|---|---|
| What it encrypts | Message content, end to end | Message content, end to end | Connection between mail servers |
| Who can read the message | Only the recipient | Only the recipient | Mail providers and anyone with server access |
| How trust is established | Web of trust between users | Certificates from a certificate authority | Certificates from a certificate authority |
| Typical users | Individuals, journalists, technical users | Companies and government | Everyone, automatically |
| Setup effort | Moderate, both sides must set it up | Moderate, needs a certificate | None, handled by providers |
| Cost | Free with open tools | Often paid per certificate | Included with email service |
TLS is already protecting your mail most of the time, and you should keep it that way. But TLS ends at each server hop, and every provider that handles your mail can read it. PGP and S/MIME keep the message scrambled all the way to the recipient's device.
The choice between PGP and S/MIME usually comes down to who you talk to. If your contacts already use PGP, use PGP. If your company issues S/MIME certificates, use S/MIME. Using the system your contacts already have is worth more than any technical difference between the two.
What do you need to start using PGP?
You need three things: an OpenPGP program, a key pair, and your contacts' public keys. The software is free, the key pair takes a few minutes to create, and exchanging public keys is the only part that needs another person.
- An OpenPGP program. GnuPG is the most widely used free implementation and runs on Windows, macOS and Linux. On Windows, Gpg4win bundles it with a mail plugin. On macOS, GPG Suite does the same. Mail apps such as Thunderbird have OpenPGP built in.
- A key pair. Your software creates a public key you can share freely and a private key you must protect with a strong passphrase. Modern setups use elliptic-curve keys, which are shorter and faster than older RSA keys of the same strength.
- Your contacts' public keys. You need the recipient's public key before you can send them an encrypted message. People publish keys on their websites, on key servers, or simply send them by email.
- A backup plan. Make a revocation certificate when you create the key. It lets you declare the key dead if your private key is ever lost or stolen, so other people stop trusting it.
Check that your mail app supports OpenPGP before you commit. Thunderbird supports it natively, and plugins exist for other clients. Webmail services generally do not support PGP in the browser, which is one reason many people use a desktop mail app for encrypted mail. If you want to see what your mail headers reveal today, run a message through the email header analyzer first.
How do I set up PGP email step by step?
Setting up PGP takes about fifteen minutes. The steps are the same in most tools: install the software, create your key pair, publish your public key, import your contact's key, and then encrypt your first message.
- Install an OpenPGP tool. On Windows install Gpg4win, on macOS install GPG Suite, on Linux install GnuPG from your distribution. Or open Thunderbird, which includes OpenPGP already.
- Create your key pair. Enter your name and email address, choose a modern key type such as Ed25519 for signing and Curve25519 for encryption, and set a long passphrase you will remember. Do not reuse a password from another account.
- Make a revocation certificate and a backup. Export your private key and your revocation certificate to an encrypted USB drive or another offline location. Never email your private key to yourself.
- Publish your public key. Share it on your website, upload it to a key server, or send it to the people you want to exchange encrypted mail with.
- Import your contact's public key and verify it. Check the key fingerprint with your contact over a second channel, such as a phone call or a chat message, before you trust it. A fingerprint is a short code derived from the public key.
- Send a test message. Encrypt and sign a short message to your contact and ask them to reply the same way. If both directions work, you are set up.
The fingerprint check matters more than it looks. If an attacker slips you a fake public key for your contact, your encrypted mail goes to the attacker instead. Comparing fingerprints out of band is the one step people skip, and it is the step that stops that attack.
For a quick check on how message fingerprints work, try the hash generator to see how a small change produces a completely different hash.
What are PGP keys, fingerprints and the web of trust?
A PGP key pair has a public half you share and a private half you guard. A fingerprint is a short, readable code computed from the public key, and the web of trust is the system of signatures by which users vouch for each other's keys.
Your public key is not secret. You can post it anywhere. Your private key is the secret that unlocks everything encrypted to you and proves your signatures are yours. If someone copies your private key and learns your passphrase, they can read your encrypted mail and sign messages as you.
Fingerprints solve the problem of long keys. A full public key is hundreds of characters, but its fingerprint is a short string you can read aloud or print on a business card. If two fingerprints match, the keys match. That is why the verification step in the setup above matters.
The web of trust is how PGP answers the question of who a key belongs to without a central authority. Users sign each other's keys after checking identity in person, and your software can follow those signatures to decide whether to trust a key it has never seen. It works well in small communities and poorly at internet scale, which is why most people verify keys directly instead.
Key servers add another wrinkle. They are public directories where anyone can upload a key claiming any name. Treat a key from a key server as a lead, not as proof. Verify the fingerprint before you rely on it.
Encryption is only half of email security. Read what DMARC does to see how providers prove a message really came from a domain.
Signatures are the other half. Read how DKIM signing works to see how a domain signs its outgoing mail.
Is PGP encryption still safe in 2026?
Yes, PGP with modern settings is still safe. The OpenPGP standard was refreshed as RFC 9580 in 2024, it supports elliptic-curve cryptography, and GnuPG continues to receive regular security updates, with version 2.5.24 released in September 2026.
The most famous scare was EFAIL, disclosed in 2018. Researchers showed that some mail clients mishandled encrypted messages in a way that could leak plaintext when combined with HTML rendering tricks. The flaw was in how clients displayed messages, not in the underlying cryptography, and it was fixed by updating clients and by disabling the risky behavior.
What has changed since then is the standard itself. RFC 9580 removes outdated algorithms, requires authenticated encryption for message protection, and adds support for modern curves and for Argon2 key derivation. If you create a fresh key today with current software, you get those improvements by default.
The real risks in 2026 are the same as ever: a weak passphrase on your private key, a private key stored on a shared or unencrypted drive, and old software that has not been updated. Keep your tools current, keep your private key offline when you are not using it, and PGP remains one of the strongest email protections available.
What are the limits of PGP and the mistakes to avoid?
PGP protects message content, not metadata, and it only works when the other person uses it too. The most common mistakes are losing the private key, trusting an unverified public key, and assuming PGP hides who you are emailing.
- No metadata protection. Sender, recipient, subject line and timing stay visible. PGP does not hide who you talk to or when.
- Both sides must use it. You cannot send an encrypted message to someone who has no key. That is the main reason PGP never went mainstream.
- No forward secrecy. If your private key is ever exposed, every message encrypted to it can be read, including old ones. Messengers that rotate keys each session do not have this weakness.
- Key management is on you. There is no password reset. Lose the private key and its backup, and your encrypted archive is gone for good.
- Encrypted does not mean authenticated by itself. Encrypting without signing proves nobody else read the message, but not who wrote it. Sign your messages as well as encrypting them.
- Old clients and old keys. Keys made years ago may use algorithms that are now weak. If your key predates modern defaults, create a fresh one and retire the old key properly.
Attackers know these limits. A common social engineering trick is to send a fake key or a fake encrypted message and rely on the recipient skipping the fingerprint check. Learn the signs in why social engineering works so well before you trust an unexpected key exchange.
When should you use PGP instead of a secure messenger?
Use PGP when you need encrypted email with a specific person, especially for documents and records that must stay readable for years. Use a secure messenger instead when you need quick, everyday chats with people who will not set up keys.
PGP fits email-shaped problems. A lawyer sending a contract, a journalist receiving documents, a small business sharing credentials with a contractor: these are messages that live in inboxes, get archived, and need signatures that still verify months later. PGP handles all of that.
Messengers fit conversation-shaped problems. They offer forward secrecy, disappearing messages and easy setup, and they work the moment both people install the app. What they do not offer is email: you cannot send a signed, encrypted message to an inbox and have it sit there until the recipient opens it next week.
For many people the answer is both. Use a messenger for daily chat and PGP for the handful of email exchanges where the content is sensitive and the record matters. That division keeps the setup effort small while covering the cases where email encryption actually earns its keep.
The bottom line
PGP encryption is old, fiddly and still the best way to send a truly private email. Set it up once with current software, verify fingerprints before you trust a key, and keep your private key backed up offline. Those three habits cover almost every way PGP goes wrong in practice.
If you handle sensitive email for your business, pair PGP with the basics: strong email authentication and a habit of checking messages before you trust them. Run your domain through the email security platform to see where your setup stands, and start with one contact who will test encrypted mail with you this week.
Frequently asked questions
What does PGP stand for?
PGP stands for Pretty Good Privacy. It is the name of the encryption program Phil Zimmermann released in 1991, and the open standard based on it is called OpenPGP.
Is PGP encryption free?
Yes. OpenPGP is an open standard and free implementations exist, including GnuPG for Windows, macOS and Linux, and free plugins for common mail apps. You pay nothing for the encryption itself.
Does PGP hide my email address?
No. PGP encrypts the body of the message, but the sender and recipient addresses, the subject line and the timing usually stay visible to mail servers. If you need to hide metadata, PGP alone is not enough.
Can PGP encrypted email be hacked?
PGP itself has no known practical break when used with modern algorithms and a strong private key passphrase. Most real failures come from lost or stolen private keys, weak passphrases, or old mail clients that mishandle encrypted messages.
What is the difference between PGP and a VPN?
PGP encrypts the content of a message so only its recipient can read it. A VPN encrypts your network connection so your internet provider or local network cannot see your traffic. They solve different problems and can be used together.
Do I need PGP if my email already uses TLS?
TLS protects mail while it travels between servers, but your provider can still read it at rest. PGP adds end-to-end encryption, so only the recipient can read the message even if a server is breached.
What happens if I lose my PGP private key?
You lose the ability to read every message encrypted to that key, and you cannot prove your identity with its signatures. That is why you should make a revocation certificate when you create the key and store a backup of the key somewhere safe and offline.
Is PGP the same as S/MIME?
No. Both encrypt and sign email, but PGP uses a web of trust where users vouch for each other, while S/MIME relies on certificates issued by a certificate authority. PGP is more common among individuals and technical users, while S/MIME is more common in companies.
Sources
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.
Checked against RFC 9580 (OpenPGP), RFC 4880 and the GnuPG project documentation.
How we write and fact-check →