Harvest now, decrypt later: why key exchange is the post-quantum priority
On this page
Short answer: "Harvest now, decrypt later" (also store now, decrypt later) means an adversary records encrypted traffic today and keeps it until a cryptographically relevant quantum computer can break the key exchange that protected it. Any secret that must stay secret beyond that day is already at risk if it crosses a network under RSA or elliptic-curve key exchange. That is why key exchange is the first thing to migrate, and why signatures can come later.
Why the risk starts before the quantum computer exists
Shor's algorithm breaks RSA, finite-field Diffie-Hellman and elliptic-curve Diffie-Hellman (including X25519). In a TLS or SSH session, the key exchange is the only thing protecting the session keys. Record the handshake and the ciphertext, wait, recover the key exchange secret, and every byte of that session becomes readable.
Collecting traffic is cheap and storage is cheaper. Intelligence agencies are widely assumed to retain large volumes of encrypted traffic of interest. Nobody needs to know when a quantum computer will arrive for the data to be exposed: only that it arrives before the data stops mattering.
Mosca's inequality: do you need to act now?
Michele Mosca's rule of thumb:
If x + y > z, you have a problem. x is how long your data must stay confidential, y is how long your migration will take, and z is the time until a cryptographically relevant quantum computer exists.
Examples of x: health records (decades), long-lived credentials and API secrets sent over the wire (until rotated, often years), M&A and legal communications (years), source code and model weights (years), personal data under privacy law (as long as the person lives). y for a real organisation, with an inventory, vendor dependencies and change control, is usually several years. You don't need a precise z to see that x + y already exceeds most published estimates.
What harvest-now-decrypt-later does and doesn't affect
| Cryptography | Exposed to HNDL? | Why |
|---|---|---|
| TLS / SSH / VPN key exchange (ECDHE, X25519, DH) | Yes | Recorded handshakes can be broken later |
| RSA or ECDH key wrapping of stored data (envelope encryption, encrypted backups, JWE) | Yes | The wrapped key is sitting in the ciphertext |
| Signatures (certificates, JWT signing, code signing) | No, not retroactively | A forged signature only helps an attacker at verification time |
| Symmetric encryption (AES-256, ChaCha20) | No | Grover's speed-up is not enough to matter at 256-bit keys |
| Hashes (SHA-256 and up) | No | Same |
Signatures still need to migrate before a quantum computer exists, especially long-lived roots of trust and firmware signing keys, which are hard to change. But they are not exposed to recording today.
What to fix first
- External TLS key exchange. Turn on hybrid
X25519MLKEM768. Usually a runtime upgrade or a one-line config change. See X25519MLKEM768 explained. - Internal service-to-service TLS and SSH. Same fix, often forgotten. Internal links carry the most sensitive data and are just as recordable by an attacker with network access. OpenSSH guide.
- Application-level key wrapping. RSA-OAEP or ECDH used to wrap data keys in your own code. This needs a code change to a hybrid KEM and a versioned ciphertext format so existing data still decrypts.
- Signatures and PKI. Plan now, deploy as post-quantum certificates and HSM support mature.
What the governments say
- NIST IR 8547 (final, October 2026) deprecates quantum-vulnerable key establishment after 2030 and disallows it after 2035, and names TLS as an early priority.
- NSA, December 2, 2026: advised owners and vendors of National Security Systems to transition immediately, and as an interim step to move TLS services to TLS 1.3 and enable post-quantum settings.
- UK NCSC: discovery and planning by 2028, highest-priority migrations by 2031, everything by 2035.
All dates in one place: Post-quantum migration deadlines.
pqshift ranks the findings in each repo by harvest-now-decrypt-later exposure, fixes key exchange first, and proves each fix with a real handshake in CI.
FAQ
What is harvest now, decrypt later?
An attacker records encrypted traffic today and stores it until a cryptographically relevant quantum computer can recover the key exchange, then decrypts it. Any data that must stay secret beyond that point is already exposed if it crosses the network with classical key exchange.
Does harvest now, decrypt later affect signatures?
No. A signature only has to resist forgery while it is being checked, so a future quantum computer cannot retroactively forge yesterday's handshake. That is why key exchange is migrated first and certificates later.