← Back to section · Digital Security
The Secrecy Lifetime of Encrypted Data: How Many Years Must This Ciphertext Hold?
Every piece of encrypted data has a term it must survive: medical records for decades, contracts for years, session keys for hours. If the secrecy lifetime plus migration time exceeds the time until the threat arrives, the data has already lost on the day it was written.
Encryption strength is only half the story; the other half is time. A chat message needs to hold for a week, a genetic test report for a lifetime, a state archive for decades. The secrecy lifetime (or shelf life) of data is the number of years it must remain unreadable from the moment it is encrypted. It is determined by the nature of the data, legal obligations, and the consequences of disclosure — a business and compliance question, not a cryptographic parameter. Yet every cryptographic choice should be derived from it.
Mosca’s inequality: the arithmetic of urgency
Cryptographer Michele Mosca proposed a compact test, now known as Mosca’s inequality: let X be the secrecy lifetime the data requires, Y the time needed to migrate systems to quantum-resistant schemes, and Z the time until large-scale quantum attack becomes real. If X + Y > Z, the risk already exists — even if the quantum computer has not been built yet, your data is already out of time.
The inequality exposes the essence of harvest-now-decrypt-later attacks: against stored data and passively recorded traffic, the adversary need not wait for Z to act; the ciphertext collection is happening today. The longer X is — medical records, genomes, long-term contracts, identity archives — the earlier that data belongs in the migration queue. Data with X measured in hours — session content, temporary tokens — can calmly wait for standards and ecosystems to mature.
Grading data by secrecy lifetime
Practice suggests three rough tiers. Short lifetime (hours to a few years): session data, caches, logs, temporary files. Classical encryption with forward secrecy is broadly sufficient; the emphasis belongs on key destruction and retention policy. Medium lifetime (a few years to fifteen): business contracts, financial records, customer data. Quantum-resistant migration must complete within the planning horizon, covering both key exchange and signatures. Long lifetime (fifteen years and beyond): medical and genetic data, identity and civil registries, state secrets, personal data of minors. Such data should be encrypted with quantum-resistant or hybrid schemes today, with the expectation of at least one or two algorithm transitions inside its lifetime — which means encryption formats must carry algorithm identifiers and support re-encryption, and key systems must support rotation.
The common grading error is underestimating X: data used by the business for five years is not data whose disclosure matters for only five years. Identity information, once leaked, is valid for life; a medical record’s sensitivity does not end when treatment does. X should be measured by how long disclosure consequences last, not by the data’s operational usefulness.
Where lifetime comes from: law and the consequences of disclosure
Secrecy lifetime is not guessed; it has concrete sources. One source is law and industry rules: statutory retention for medical files, record-keeping duties for financial transactions, special protection periods for minors’ information — these set floors, and the end of a retention duty is not the end of sensitivity; data must exist through the retention period, and confidentiality obligations extend well beyond it. A second source is reasoning about disclosure: after a leak, how long does it take affected people to replace what was exposed? Passwords can be changed, identity numbers barely can, and genomes and biometrics can never be replaced — the less replaceable the data, the closer its lifetime approaches a human lifespan. A third source is the adversarial landscape: a negotiation floor price is worthless after signing, so its lifetime is months, while a process trade secret may stay confidential for a product’s entire life. Running a data category through all three sources is what makes its X defensible.
A corollary easily missed: Z is not a date
The Z in Mosca’s inequality is often misread as the day quantum computers arrive. In reality the threat arrives gradually: state-level adversaries gain retroactive decryption capability first, and commercial diffusion follows years later; different key sizes and algorithms fall at different times. The robust practice is therefore not to bet on a particular year for Z, but to keep ample margin for long-X data — start migrating when X + Y approaches any reasonable estimate of Z, rather than waiting for consensus that the threat has arrived. By the time the world agrees it has, harvesting of long-lifetime data finished years earlier, and the migration window has in practice already closed.
Shrinking exposure: more than swapping algorithms
When lifetimes are too long, three further measures work directly. Shorten retention: delete data at expiry without hesitation — deletion is the most reliable encryption, since nonexistent ciphertext cannot be broken, and data minimization shrinks the blast radius at the same time. Segment and isolate: store and encrypt long-lifetime fields separately from short-lifetime ones, so the whole database is not held hostage to its most sensitive column. Re-encrypt early: before an old algorithm fails, re-encrypt the stored ciphertext under a new one and destroy the old copies. Re-encryption only works if completed before the algorithm falls; afterward it is pointless — which obliges organizations to track algorithm health continuously instead of waiting for an incident.
Finally, secrecy lifetime belongs in data governance itself: every data category should be registered with its X, its current encryption scheme, an owner, and a next review date. Organizations without such a ledger typically discover, during incident review, that some of their data was supposed to hold for fifty years.
One more caution: lifetime assessment is not a one-time exercise. Data sensitivity shifts with context — records harmless when scattered can assemble into a sensitive profile once aggregated into one store, and an internal codename from years ago may later map to a matter of public significance. Every category in the ledger therefore needs a review cycle, re-estimating X whenever the business shape, regulatory environment, or threat intelligence changes. Treat secrecy lifetime as a living governance parameter, not a form field filled once at launch review and shelved, and long-lifetime data will actually have someone standing guard over it.
Tags: secrecy lifetimeharvest now decrypt laterMosca's inequality