Foxcolab

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 agreementLater theft of the long-term key
Session key encrypted to a long-term public keyRecorded traffic can be decrypted
Temporary (ephemeral) key exchange, signed by the long-term keyRecorded 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

All terms

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.

Jump to