Harvest now, decrypt later (HNDL), also called store now, decrypt later, is an attack strategy in which an adversary captures and archives encrypted data today and waits until a future machine can break the cryptography that protects it. In quantum security, the term describes the specific threat that a cryptographically relevant quantum computer running Shor’s algorithm will one day recover the keys behind recorded RSA and elliptic-curve sessions.
The concept matters because it turns a future capability into a present-day risk. Data that must stay confidential for ten or twenty years is already exposed if it crosses a network under classical key exchange, which is why HNDL is the main argument for starting the move to post-quantum cryptography long before the first quantum computer capable of breaking it exists.
How a harvest now, decrypt later attack works
A harvest now, decrypt later attack has two separated phases: passive collection in the present and cryptanalysis in the future. The attacker does not need to break anything at the time of capture; it only needs storage, access to traffic and patience.
In the collection phase, the adversary copies ciphertext from fiber taps, compromised routers, cloud backups or stolen archives. The most valuable captures include the complete key exchange handshake, because a TLS, SSH or IPsec session derives its symmetric keys from an ephemeral Diffie-Hellman or ECDH exchange. Whoever can later solve the underlying discrete logarithm problem can reconstruct the session keys and decrypt everything that followed.
The following table summarizes the stages of the attack and what each one requires.
| Stage | What happens | What the attacker needs |
|---|---|---|
| Interception | Encrypted traffic or files are copied | Network position or system access |
| Selection | Targets with long-lived value are filtered | Metadata, routing and endpoint knowledge |
| Archiving | Ciphertext and handshakes are stored | Cheap, durable bulk storage |
| Key recovery | Public-key math is broken years later | A cryptographically relevant quantum computer |
| Decryption | Session keys decrypt the stored data | Standard computing resources |
Because the collection phase is passive and leaves no trace, victims rarely know that their traffic has been archived. Perfect forward secrecy does not help here: it protects against later theft of a long-term private key, but every ephemeral exchange remains individually breakable by a quantum computer.
Which cryptography harvest now, decrypt later threatens
HNDL threatens public-key key establishment far more than symmetric encryption or hashing. Shor’s algorithm solves integer factoring and discrete logarithms in polynomial time, which defeats RSA, finite-field Diffie-Hellman and elliptic-curve schemes completely. Grover’s algorithm offers only a quadratic speedup against symmetric ciphers, so AES-256 keeps a comfortable margin.
Digital signatures are a separate case. A forged signature in the future cannot retroactively change a message that was verified in the past, so signatures face forgery risk after Q-Day rather than a harvest risk. Confidentiality of recorded data is what HNDL attacks, and the table below shows how exposure differs by primitive.
| Primitive | Quantum attack | HNDL exposure |
|---|---|---|
| RSA key transport | Shor’s algorithm | High: recorded sessions fully recoverable |
| ECDH and X25519 | Shor’s algorithm | High: ephemeral keys recoverable |
| AES-128 | Grover’s algorithm | Low to moderate: effective strength reduced |
| AES-256 | Grover’s algorithm | Very low: large security margin remains |
| SHA-2 and SHA-3 | Grover-type search | Very low for confidentiality |
| ML-KEM | No known efficient attack | Designed to resist HNDL |
The practical consequence is that key exchange must be migrated first. Data encrypted with a pre-shared AES-256 key and never exposed through a classical public-key exchange is largely safe, whereas a standard web session protected only by ECDHE is a candidate for future decryption.
Estimating the risk with data lifetime and Mosca’s theorem
The size of the harvest now, decrypt later risk depends on how long data must stay secret, not on how soon a quantum computer arrives. Mosca’s theorem expresses this as an inequality: if the confidentiality lifetime of the data plus the migration time exceeds the time until a cryptographically relevant quantum computer exists, the data is already at risk.
Nobody can state the arrival date of such a machine with confidence. Expert surveys place a meaningful probability within ten to twenty years, while some researchers expect longer, and the uncertainty itself is the reason to act early. The following table compares typical data categories by confidentiality horizon.
| Data category | Required secrecy | HNDL priority |
|---|---|---|
| Session cookies and one-time codes | Minutes to days | Low |
| Routine business email | One to five years | Moderate |
| Trade secrets and source code | Five to fifteen years | High |
| Health and genetic records | Lifetime of the person | Very high |
| Diplomatic and defense communications | Twenty-five years or more | Critical |
| Long-term identity and biometric data | Decades, not revocable | Critical |
Migration time is often underestimated. A cryptographic inventory, vendor upgrades, protocol testing and hardware replacement in large organizations can take five to ten years, which shrinks the safe window considerably.
Defending against harvest now, decrypt later
The primary defense is to replace vulnerable key establishment with quantum-resistant key encapsulation before sensitive traffic crosses untrusted networks. NIST standardized ML-KEM in FIPS 203 for this purpose, and most deployments combine it with a classical algorithm in a hybrid key exchange such as X25519MLKEM768, so that security holds as long as either component remains unbroken.
The table below matches common situations with a recommended response.
| Situation | Recommended measure | Reason |
|---|---|---|
| Public web services | Enable hybrid ML-KEM in TLS 1.3 | Protects sessions with little latency cost |
| Site-to-site VPNs | Use post-quantum IKEv2 extensions or pre-shared keys | Removes reliance on classical exchange alone |
| Messaging applications | Adopt protocols such as PQXDH | Protects long-lived personal conversations |
| Archived backups | Encrypt with AES-256 and protected key wrapping | Symmetric storage resists quantum attack |
| Legacy embedded devices | Isolate traffic and plan hardware replacement | Firmware often cannot be upgraded |
Crypto-agility is the supporting principle. Systems that can swap algorithms through configuration rather than redesign can respond faster if a post-quantum scheme is weakened, as happened when SIKE was broken by classical cryptanalysis in 2022.
Common misconceptions about harvest now, decrypt later
Several misunderstandings lead organizations to delay migration unnecessarily. The most frequent ones are listed below.
- It is not a future problem. The collection happens today, so the deadline for protecting long-lived data is set by present traffic, not by Q-Day.
- Strong passwords do not help. Session keys come from public-key exchanges, and password strength has no effect on Shor’s algorithm.
- Bigger RSA keys are no fix. Shor’s algorithm scales polynomially, so doubling key size only modestly raises the quantum resources required.
- Quantum key distribution is not required. Post-quantum cryptography runs on existing hardware and networks, while QKD needs dedicated infrastructure.
- Not all data needs priority. Short-lived data has little HNDL value, so a risk-based order of migration is legitimate.
Stripped to the essentials
Imagine someone photographing every locked safe they pass, even though they cannot open any of them today. They keep the photos in a drawer and wait for a master key to be invented. Harvest now, decrypt later works the same way with encrypted internet traffic.
Today, the locks on most online connections are strong. A future quantum computer, however, could open the type of lock that sets up those connections. Anything secret for many years is already at risk if it was sent with the old locks, so the sensible step is to switch to quantum-resistant locks now.
Where it is applied
A regional hospital network transfers patient imaging and genetic test results between its sites and an external laboratory over the public internet. Its security team assumes that a well-resourced adversary could record this traffic, and genetic data must remain confidential for the entire lifetime of each patient, well beyond any reasonable estimate of Q-Day.
The team builds a cryptographic inventory and finds that the laboratory link relies on TLS with ECDHE key exchange only. It enables hybrid X25519MLKEM768 on the load balancers and asks the laboratory to upgrade its client library. The handshake grows by about two kilobytes and adds no measurable delay to transfers of large image files.
Within one quarter, all new transfers use hybrid key exchange. Older recorded traffic cannot be protected retroactively, but the exposure window is closed for every future transfer, and the hospital documents the change as part of its quantum-safe migration plan.