Glossary
Forward secrecy
Definition
Forward secrecy: A property of an encryption protocol: compromise of a long-term key does not expose the keys of earlier sessions, because each session or message was protected by a temporary key that has since been erased. Recorded traffic stays unreadable.
Also known asperfect forward secrecyPFSforward security
In short
Forward secrecy is a property of an encryption protocol: if a long-term key is stolen later, traffic recorded earlier still can't be decrypted. The protocol agrees on a temporary key for each session or message and erases it afterward. TLS 1.3 and the Signal protocol have it. Email encrypted with OpenPGP or S/MIME usually doesn't, because stored mail must stay readable with a key you keep.
Key takeaways
- Forward secrecy protects the past. A key stolen tomorrow can't open a session that ended an hour ago, provided the session keys were erased.
- It works by using a temporary (ephemeral) key exchange for each session, with the long-term key used only to prove identity.
- TLS 1.3 removed the key exchanges that lacked forward secrecy; pre-shared-key-only resumption and 0-RTT early data are the exceptions.
- Protecting future messages after a compromise is a different property, usually called post-compromise security or break-in recovery.
- Anything you can still decrypt years later, such as an email archive, is by definition not forward secret against the key that opens it.
Last reviewed 30 November 2026
Forward secrecy is a property of an encryption protocol: if a long-term key is stolen later, the attacker still can't decrypt sessions recorded earlier. The protocol gets there by agreeing on a temporary key for each session, or each message, and erasing it afterward. The long-term key only proves identity, so there is nothing left to steal that would open old traffic. You will also see it called perfect forward secrecy (PFS).
The attack it answers#
Someone records your encrypted traffic and waits. A year later they obtain the server's private key through a breach or a court order. What they can read depends on how the session key was agreed.
| Key agreement | Later theft of the long-term key |
|---|---|
| Session key encrypted to a long-term public key | Recorded traffic can be decrypted |
| Temporary (ephemeral) key exchange, signed by the long-term key | Recorded traffic stays sealed, if the session keys were erased |
How TLS 1.3 and Signal do it#
TLS versions before 1.3 allowed the first row: the browser encrypted the session secret to the key in the server's certificate. TLS 1.3 (RFC 8446) removed those options, and the RFC states that "all public-key based key exchange mechanisms now provide forward secrecy". Two exceptions are written into the same RFC: resumption with a pre-shared key alone, and 0-RTT early data, which "is not forward secret".
Messaging protocols go further and change keys per message. Signal's specification has the two sides "derive new keys for every … message so that earlier keys cannot be calculated from later ones".
Forward secrecy is about the past#
The same Signal design also mixes fresh key-exchange results into the keys "so that later keys cannot be calculated from earlier ones". That is the mirror property, called break-in recovery or post-compromise security: it protects future messages after a key leaks. A protocol can have one without the other.
Forward secrecy also covers only data in motion. Message history that sits decrypted on a phone is readable by whoever takes over the phone.
Why stored email usually lacks it#
PGP and S/MIME encrypt each message's one-time session key to the recipient's long-term public key (RFC 9580, section 2.1). A Signal post from 2013 describes the consequence: every message to a recipient "is encrypted with the recipient's same public key", so one stolen private key opens all of them.
The cause is a trade-off. Forward secrecy depends on deleting keys, and a mailbox you can still read in five years depends on keeping one. For stored data, what matters is how well the long-term key is guarded, which is the job of a key derivation function and a strong password.
Keep exploring
Related terms
- Encryption in transit (TLS)Encryption in transit protects data while it crosses a network, usually with TLS. It stops eavesdroppers, but every server along the way can still read the data.
- End-to-end encryption (E2EE)End-to-end encryption keeps data encrypted from the sender's device to the recipient's device, so the servers in between only ever handle ciphertext.
- Public-key cryptographyPublic-key cryptography uses a pair of linked keys, one public and one private, to share secrets and sign data between people who have never met.
- PGP (Pretty Good Privacy)PGP is the encryption program from 1991 that became the OpenPGP standard for encrypting and signing email and files. The two names are often used as if they meant the same thing.
- S/MIMES/MIME signs and encrypts email using X.509 certificates. What a signature really tells you depends on which certificate authority issued the certificate and what it checked.
- Man-in-the-middle attackIn a man-in-the-middle attack, someone sits between two parties and relays their traffic so they can read or change it. Encryption helps only when you also verify who is on the other end.
Foxcolab
Private work tools, without the ads.
Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.