Act 1 RSA is safe only because factoring is slow
RSA's security rests on one fact: multiplying two primes is easy, and getting them back from the product is not. Shor's algorithm turns factoring into finding a period, and a quantum computer finds periods quickly.
Shor's algorithm, simulated
An exact classical simulation of the circuit's measurement probabilities. It is the same mathematics a quantum computer runs, but it takes exponential memory, which is why only tiny N fit in a browser.
The classical attacker: factoring toy RSA keys
Your browser generates RSA moduli of increasing size and factors each one with Pollard's rho. Each 8 extra bits makes this attack about 4× slower. Better classical algorithms exist, but every known one still slows down faster than any polynomial as keys grow.
| bits | n | factors | time |
|---|
Real key sizes
| bits | Best classical (GNFS) | Shor's algorithm |
|---|---|---|
| Press the button. | ||
Classical estimates extrapolate from the RSA-250 record with the GNFS complexity formula. The formula ignores constant factors, so read the large numbers only as "far out of reach". Shor's algorithm grows polynomially, so its cost stays within reach of a large enough quantum computer.
Act 2 Harvest now, decrypt later
Alice sends Bob a secret, and Eve records every byte. She can't read it today, but she can store it until a quantum computer exists. Run the handshake both ways and move the clock forward to see what she can read then.
Alice ↔ Bob
Bob reads: —
Eve, the recorder
0 bytes
0 messages stored · year 2026
The DH half uses a 34-bit toy group in place of X25519, so Eve's laptop-scale attack finishes in milliseconds. Shor's algorithm would solve the real 255-bit curve the same way. The ML-KEM-768 half is the real FIPS 203 algorithm.
The Q-Day clock
Mosca's rule: if shelf life + migration time > years until Q-Day, you are already late. The values you set here also drive Scout's ranking in Act 3.
The cost of switching, measured with real keys
| Classical | size | Post-quantum | size | larger by |
|---|
Bigger keys and signatures affect packet sizes, certificate chains, smart cards and embedded devices, and that is a big part of why migration takes years.
Act 3 QuantumSafe Scout: find it in your code
The first step of a migration is an inventory, and most teams don't have one. Scout reads a repository in your browser, maps each piece of crypto to the service that uses it and the data it protects, ranks the findings against your Q-Day clock, and writes a suggested patch for each.
Files are fetched straight from GitHub to your browser. Nothing is uploaded anywhere.