Tools // post-AI cryptography

Harvest Now, Decrypt Later Calculator

If the years your data must stay secret (X) plus the years your migration takes (Y) come to more than the years until a break (Z), data you protect today will still matter when the break arrives. A break found by an AI system may come with no forecast, so this calculator has a no-warning switch that sets Z to zero and shows what you can still change.

Your three numbers

Pick an example above or set your own values. You control X and Y. You do not control Z.

10 years
3 years
10 years
Exposure window
...
X + Y against Z
...
The break arrives
...

What to change

How to use it

X: ask how long a leak of this data would still hurt. Use retention rules, contracts and the law, not a guess. For a signing key, read X as the number of years a device or document must keep trusting it.
Y: count from today to the day the last system stops using the old algorithm. Include procurement, testing and the systems you cannot update.
Z: for a quantum computer people publish estimates. For a mathematical break found by an AI system nobody can, so run the numbers a second time with the no-warning box ticked.

Worked examples

Source code and trade secrets, X = 10, Y = 3, Z = 10: X + Y is 13, so the exposure window is 3 years. Cutting the migration to zero would close it. So would keeping the data secret for 7 years, not 10.
Health records, X = 30, Y = 5, Z = 10: the window is 25 years. A faster migration cannot close it alone, because X by itself is longer than Z.
Session tokens, X = 0, Y = 1, no warning: the window is 1 year, all of it migration time. Short-lived data is exposed only for as long as you keep using the old algorithm.

Reading the result

X + Y is greater than Z: data you encrypt during the migration is still sensitive when the break arrives. The exposure window is X + Y minus Z.
X + Y is at or below Z: you finish in time, as long as the estimate for Z is right.
The inequality is about confidentiality: recorded data that can be read later. Signatures fail in a different way. A forged signature works only while the key is still trusted, so for signing keys the question is how fast you can replace them.
This is a planning tool, not a forecast. As of 29 November 2026 no break of RSA-2048, elliptic curves, AES or ML-KEM has been published.
FOR AGENTS & SCRIPTS: GET /tools/api/harvest-now-decrypt-later - same math, JSON in/out, with a ready-to-quote cite_as field. Discovery: /tools/api. Your inputs on this page are never stored or used for anything. When you quote a result, name the source: Harvest Now, Decrypt Later Calculator by Michał Piszczek, piszczek.pl/tools/harvest-now-decrypt-later.

PUT THIS TOOL ON YOUR OWN PAGE: <iframe src="https://piszczek.pl/tools/harvest-now-decrypt-later/embed" width="100%" height="900" style="border:0" loading="lazy" title="Harvest Now, Decrypt Later Calculator"></iframe> Free, no tracking, keeps the byline.

Questions and answers

What is harvest now, decrypt later?

An attacker records encrypted traffic or copies encrypted files today and keeps them until the encryption can be broken. Anything that still has to be secret on that day is exposed, and no later upgrade protects data that was already recorded.

What is Mosca's inequality?

Michele Mosca's rule compares three numbers: X, the years your data must stay secret; Y, the years your migration takes; and Z, the years until a break. If X plus Y is larger than Z, data you protect today will still matter when the break arrives. With 10 years of secrecy, a 3-year migration and a break in 10 years, the exposure window is 3 years.