Perfect Forward Secrecy Calculator
Score your forward-secrecy posture from the key exchange, ticket lifetime and ticket-key rotation, and size the exposure window.
Inputs
The harvest-now, decrypt-later threat model.
Forward Secrecy Score
100/100
Rating
A — Excellent
Exposure Window on Key Compromise
32.00hours
Sessions Decryptable per Compromise
32,000,000
Assessment
Strong forward secrecy — exposure limited to 32 hours
Step by step
Values used
Key exchange = ECDHE (ephemeral elliptic curve); Session-ticket key rotation interval = 24 hours; Session-ticket lifetime offered to clients = 8 hours; Sessions established per hour = 1,000,000 sessions; Assume an adversary is recording all traffic = Yes
Perfect Forward Secrecy
exposure window = ticket-key rotation interval + ticket lifetime when the key exchange is ephemeral; without PFS it is the whole life of the certificate key.
Forward Secrecy Score
= 100 /100
Rating
= A — Excellent
Exposure Window on Key Compromise
= 32.00 hours
Sessions Decryptable per Compromise
= 32,000,000
Assessment
= Strong forward secrecy — exposure limited to 32 hours
How it works
Ephemeral key exchange means the session secret is never written down, so a later private-key theft cannot recover past traffic. Session tickets reintroduce a long-lived secret: whoever holds the ticket-encryption key can recover the resumption secret for every ticket it ever issued, so the real exposure window is the rotation interval plus the ticket lifetime. Forward secrecy is the only defence against harvest-now-decrypt-later, and it is routinely defeated in practice by TLS terminators that never rotate their session-ticket keys.
Formula
Perfect Forward Secrecy
exposure window = ticket-key rotation interval + ticket lifetime when the key exchange is ephemeral; without PFS it is the whole life of the certificate key.
- ECDHE
- Ephemeral Diffie-Hellman — a fresh key pair per session
- ticket key
- The symmetric key that encrypts session tickets — a shared secret across sessions
- exposure window
- How much recorded traffic one key compromise unlocks
Frequently Asked Questions
How is Perfect Forward Secrecy calculated?
exposure window = ticket-key rotation interval + ticket lifetime when the key exchange is ephemeral; without PFS it is the whole life of the certificate key. Ephemeral key exchange means the session secret is never written down, so a later private-key theft cannot recover past traffic. Session tickets reintroduce a long-lived secret: whoever holds the ticket-encryption key can recover the resumption secret for every ticket it ever issued, so the real exposure window is the rotation interval plus the ticket lifetime.
Why does Perfect Forward Secrecy matter?
Forward secrecy is the only defence against harvest-now-decrypt-later, and it is routinely defeated in practice by TLS terminators that never rotate their session-ticket keys.
What values do I need to enter?
This calculator takes 5 inputs: Key exchange, Session-ticket key rotation interval, Session-ticket lifetime offered to clients, Sessions established per hour, Assume an adversary is recording all traffic. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.
Does TLS 1.3 give forward secrecy automatically?
The handshake does — every TLS 1.3 cipher suite uses ephemeral key exchange. Resumption does not: a PSK derived from a ticket encrypted under a static ticket key is only as forward-secret as that key's rotation schedule.
How often should ticket keys rotate?
Every few hours to a day, with old keys retained only long enough to decrypt outstanding tickets. Rotating on restart alone leaves keys live for the entire uptime of the process.
You might also need
- Quantum Security Readiness CalculatorCommonly used together
- TLS Session Key CalculatorCommonly used together
- TLS Handshake Time CalculatorCommonly used together
- Key Rotation Interval CalculatorCommonly used together
- Cryptography Health Score CalculatorAlso in Cryptography
- RSA Key Size CalculatorAlso in Cryptography