No quantum computer has broken anything that matters. That’s still true today, and it’s the first thing to know. The second is that the NSA, the UK’s National Cyber Security Centre, Cloudflare, Google and Microsoft are all moving their encryption to something new anyway, and the reason is a story that starts in 1973. This piece tells it the way I’d tell it to a 12-year-old: what the old locks are, why a quantum computer is the one thing that opens them, how the replacements work, and where everyone is right now.
The news this week is in my other pieces: the NSA advisory, what it means for ordinary people, the eight-company joint statement and Anthropic’s lattice papers. This is the explainer underneath them. I also ran small versions of every idea below, and the results are in the text.
105
qubits on Google’s Willow chip, the real hardware
Under 1 million
qubits that a 2025 design says RSA-2048 would need
2035
year NIST plans to disallow today’s public-key encryption
The problem every secret has
Say you want to send a friend a secret note and a thief is watching every road. You can lock the note in a box, but your friend needs a copy of the key. How do you get them the key without the thief copying it? For most of history the answer was to meet in person first and swap a codebook. That doesn’t work for two strangers on the internet, which is what you and a website are.
The fix is a lock that anyone can close but only one person can open. You hand out padlocks to the whole world, and only you hold the key that opens them. The rest of this story is about how people built that padlock out of maths, and what could pick it.
1973 to 1978: the lock anyone can close
The idea was invented twice. In 1973 Clifford Cocks, working at GCHQ, Britain’s signals agency, worked out a version of it. It was secret, so nobody outside knew until GCHQ made it public in 1997. In 1976 Whitfield Diffie and Martin Hellman published the idea in the open: two people shout numbers across a room and end up sharing a secret colour that nobody listening can work out. Think of mixing paint. Everyone sees the mixed pots, and nobody can un-mix them.
In 1977 Ron Rivest, Adi Shamir and Leonard Adleman built the version that took over the world. It’s called RSA, after their initials, and they published it in the Communications of the ACM in February 1978.

How RSA works, with a lock small enough to break
RSA rests on one fact about numbers. Multiplying two big prime numbers is quick. Starting from the answer and finding the two primes is slow, and the bigger the numbers, the slower it gets. The public padlock is the product. The private key is the two primes it came from.
Take the product 3233, which is 61 times 53. With the textbook RSA recipe and a public exponent of 17, the message 65 scrambles to 2790. Anyone can do that step. To undo it you need the private number 2753, and you only get that if you know 61 and 53. I ran it:
public key (n=3233, e=17); message 65 -> ciphertext 2790
attacker factors n by trial division: 53 x 61; derives d=2753; decrypts to 65
A number that small falls to guessing in a blink, so it protects nothing. A real RSA-2048 key is a number 617 digits long. To see how the pain grows, I wrote a simple factoring program (Pollard’s rho, in plain Python on one CPU core) and timed it on numbers of growing size. Each row is the median of three numbers I built from two primes of equal size.
| Size of the number | Time to factor |
|---|---|
| 40 bits | 0.0005 seconds |
| 56 bits | 0.008 seconds |
| 72 bits | 0.13 seconds |
| 88 bits | 1.8 seconds |
| 95 bits | 8.5 seconds |
| 104 bits | 38 seconds |
| 112 bits | 140 seconds |

Over the last rows, every 8 extra bits cost roughly four times as much time. That’s the shape of a hard problem: it doesn’t get a bit harder, it gets exponentially harder. Real attackers use a much better method than mine, the number field sieve, and it still can’t touch a 2048-bit number. A classical computer, however many you rent, loses this race.
1985: the same trick on a curve
RSA keys are big, 2048 bits and up, which is slow and bulky on a phone. In 1985 Neal Koblitz and Victor Miller each suggested, separately, a different hard puzzle built on elliptic curves, a family of looping curves with a neat property: you can “add” two points on the curve and land on a third point.
The 12-year-old version is a pogo stick on a track. Start at a fixed point and hop k times. Hopping a million times takes a few quick doublings. But if I show you only where you landed, there’s no known way to work out how many hops it took. The number of hops is the private key and the landing spot is the public one. Because that puzzle is harder per bit, a 256-bit curve key gives roughly the protection of a 3072-bit RSA key. That’s why curves such as X25519 for the key exchange and P-256 or Ed25519 for signatures are everywhere, and why Bitcoin and Ethereum use curve signatures too.
Keep that in mind, because it’s the second thing a quantum computer can open.
What a quantum computer is
An ordinary computer stores bits. A bit is a coin lying flat: heads or tails, 0 or 1. A quantum computer stores qubits. A qubit is more like a coin spinning in the air. Until you look, it’s a blend of 0 and 1, and the blend can be tilted so one outcome is more likely than the other.

A handful of qubits can hold a blend of a huge number of possibilities at once, and the possibilities behave like waves, so a clever program can make the wrong answers cancel out and the right one stand tall, the way ripples can cancel on a pond. The hard part is that qubits are fragile. A stray bump of heat or vibration scrambles them, so the builders spend most of their qubits on error correction. They call the error-corrected result a logical qubit, and each one can cost hundreds of physical qubits or more.
It’s also not a faster everything-machine. For most jobs, your laptop wins. A quantum computer is good at a few jobs where there’s a hidden pattern for the waves to find. Breaking the padlocks above turned out to be one of them.
1994: Shor finds the pattern
In 1994 Peter Shor, then at AT&T Bell Labs, showed that factoring a number can be turned into a pattern-finding problem, and a quantum computer is very good at finding patterns. The trick works on the number 15.
Pick a guess, say 7. Now write down 7 to the power of 0, 1, 2, 3 and so on, but keep only the remainder after dividing by 15. You get 1, 7, 4, 13, then back to 1, 7, 4, 13. It repeats every 4 steps. That repeat length, 4, is the pattern. Once you have it, school arithmetic finishes the job: 7 squared is 49, and the greatest common divisors of 48 and 15, and of 50 and 15, are 3 and 5. So 15 is 3 times 5.
python3 -c "print([pow(7,x,15) for x in range(8)])"
[1, 7, 4, 13, 1, 7, 4, 13]

For a small number you can find the repeat by hand. For a 617-digit number the repeat is astronomically long, and a normal computer would be hunting for it forever. A quantum computer can look at all the powers at once and use a tool called the quantum Fourier transform to read off the repeat length from the waves. That’s Shor’s algorithm. The same idea cracks the elliptic-curve puzzle too, and Diffie and Hellman’s paint mixing. Those three are the locks the world runs on.
I can’t run a quantum computer, so I did the next best thing. I wrote a simulation on an ordinary computer that follows what Shor’s circuit does to the numbers, using a fast Fourier transform in place of the quantum one, and let it factor seven small numbers. It’s a classical program, so it proves the recipe works, not that anything quantum happened.
| N | Guess a | Qubits in the main register | Amplitudes to track | Pattern length | Factors |
|---|---|---|---|---|---|
| 15 | 7 | 8 | 256 | 4 | 3 × 5 |
| 15 | 2 | 8 | 256 | 4 | 3 × 5 |
| 21 | 2 | 9 | 512 | 6 | 7 × 3 |
| 35 | 3 | 11 | 2,048 | 12 | 7 × 5 |
| 77 | 2 | 13 | 8,192 | 30 | 7 × 11 |
| 143 | 2 | 15 | 32,768 | 60 | 11 × 13 |
| 221 | 2 | 16 | 65,536 | 24 | 13 × 17 |

The last column shows the point. Every extra qubit doubles the numbers my laptop-style simulation has to track. Sixteen qubits meant 65,536 of them. Two thousand qubits would mean tracking about 2 to the power of 2,000 numbers, a figure more than 600 digits long, which no computer could ever hold. A real quantum computer doesn’t track them, it is them. That’s what makes a quantum computer different, and it’s why my simulation is useless long before a real RSA key.
Real hardware is far behind. In 2001 an IBM team used a seven-qubit machine to factor 15 into 3 and 5, and the demonstrations since have stayed tiny, because the machines aren’t big or clean enough yet.
What quantum breaks and what it only dents
Not all encryption falls. Two kinds are in play, and a quantum computer treats them very differently.

The padlocks, meaning RSA, elliptic curves and Diffie-Hellman, are what Shor’s trick unpicks. They’re used to agree on a secret and to sign things. The scramblers, meaning the ciphers like AES that do the actual heavy scrambling, and hash functions like SHA, have no hidden pattern for Shor to find. In 1996 Lov Grover showed a quantum computer can search through possible keys in roughly the square root of the usual number of tries. That halves the strength in bits, so a 256-bit AES key behaves like a 128-bit one, which is still far out of reach. The answer there is simply to use the bigger sizes. The NSA’s CNSA 2.0 suite asks for AES-256 and SHA-384 or SHA-512 for this reason.
So the whole job is to replace the padlocks. The scramblers stay.
How big a machine would it take?
Nobody has built the machine and nobody can give a date. What exists are designs on paper, and they’ve shrunk a lot.

| Year | Who | Breaks | Physical qubits | Run time |
|---|---|---|---|---|
| 2012 | Fowler and colleagues | RSA-2048 | About 1 billion | About a day |
| 2019 | Gidney and Ekerå | RSA-2048 | 20 million | 8 hours |
| 2025 | Gidney, Google | RSA-2048 | Under 1 million | Under a week |
| 2026 | Iceberg Quantum | RSA-2048 | Under 100,000 | Not stated |
| 2026 | Alice & Bob | RSA-2048 | About 23,000 (cat qubits) | About 3 days |
| 2026 | Google Quantum AI | 256-bit elliptic curve | Under 500,000 | Minutes |
| 2026 | IonQ | 256-bit elliptic curve | About 19,400 | About 26 days |
| 2026 | Alice & Bob | 256-bit elliptic curve | About 30,000 (cat qubits) | About an hour |
The fall is steep. From about a billion qubits to under a hundred thousand is roughly ten-thousand-fold in 14 years, and in these designs a 256-bit curve needs fewer qubits than RSA-2048. But every row is a design that relies on low hardware errors and on qubits wired together in ways nobody has built at that scale. Alice & Bob’s numbers, for example, assume a kind of qubit that never flips one way, and the team says so. Gidney’s 2025 paper, the one that cut the RSA-2048 figure below a million, is a preprint and needs about 1,400 logical qubits.
Today’s real chips are hundreds of times smaller than even the smallest design. Google’s Willow, announced in December 2024, has 105 qubits, and its main result was showing that error rates fall as you add more qubits to the error-correcting code, which is the necessary first step. Going from 105 to a hundred thousand or more good qubits is the gap that the word “when” lives in. Companies such as IonQ say their roadmaps reach the relevant scale around 2028. Those are their goals, and nobody has delivered the machine.
The right response to an estimate that keeps shrinking is to plan as though the machine arrives within your migration window, because the cost of being early is small and the cost of being late is not.
Record now, crack later
The date matters less than it seems. A thief doesn’t need the quantum computer today. They can copy encrypted traffic today and wait. If the secret is still valuable when the machine arrives, they decrypt it then. The NSA’s press release puts it plainly: “Adversaries are already collecting encrypted information to decrypt once the capabilities become available.”

This is why the two jobs of public-key encryption get different urgency. The key exchange, which hides what you send, has to be fixed before the machine exists, because recordings made now are exposed later. The signature, which proves a website is who it says, only matters at the moment you connect, so it can be fixed when the machine gets close. In practice the key exchange is already moving and the signatures are lagging, which my guide to the NSA advisory covers.
2016 to 2024: the contest for new locks
NIST, the US standards agency, ran this as a public contest. In 2016 it invited cryptographers around the world to submit locks that a quantum computer can’t pick, then spent years inviting everyone to attack them. Sixty-nine designs made it into the first round. Winners were announced in July 2022, and three standards were published on 13 August 2024.
Along the way, two serious candidates fell to attacks from outsiders using ordinary computers: Rainbow in February 2022, and SIKE in July 2022, in about an hour on a single core. Both would have been disasters if they’d been standardised first and attacked later.

| Standard | Old name | Job | Based on |
|---|---|---|---|
| ML-KEM (FIPS 203) | Kyber | Agree a secret key | Lattices |
| ML-DSA (FIPS 204) | Dilithium | Sign things | Lattices |
| SLH-DSA (FIPS 205) | SPHINCS+ | Sign things, as the backup | Hash functions |
| HQC (selected March 2025) | HQC | Agree a secret key, as the backup | Error-correcting codes |
NIST has also set dates for itself. Its transition report, NIST IR 8547, was finalised on 27 October 2026. It deprecates RSA and elliptic curves after 2030 and disallows them after 2035. A US executive order sets earlier dates for the most sensitive federal systems: 2030 for key exchange and 2031 for signatures.
How the new locks work
The new locks have to be built on puzzles that nobody, quantum computers included, knows a shortcut for. NIST picked three families so that one surprise can’t sink everything.

Lattices: a grid with a hidden target
Picture a grid of dots stretching out in hundreds of directions at once. A hidden spot sits somewhere between the dots, and the puzzle is to find the nearest dot. In two dimensions a child can do it. In hundreds of dimensions nobody has a fast method, quantum computers included. ML-KEM and ML-DSA are built on this idea.

The version used for encryption is called learning with errors. You publish a pile of equations about a secret list of numbers, but each equation is a little bit wrong, off by a small random nudge. Without the nudges you could solve for the secret with school algebra. With them, the answer dissolves into a fog. I built a toy: 8 secret numbers, 24 noisy equations, and all the sums done modulo 3,329, the same modulus ML-KEM uses. It encrypted 8 bits and decrypted every one correctly. Then I gave an attacker the same equations. With the noise stripped out, plain algebra recovered the secret. With the noise left in, the same algebra returned nothing useful.
== C. Toy lattice encryption (learning with errors), one bit at a time ==
sent bits: [1, 0, 1, 1, 0, 0, 1, 0]
decrypted: [1, 0, 1, 1, 0, 0, 1, 0] OK
same equations with NO noise: attacker recovers s by plain algebra: True
same equations WITH noise: algebra returns the secret: False
The real standards use a cleverer, tidier version of this with a repeating pattern built in, which is what keeps keys small enough to send. Anthropic’s papers on 30 November went after exactly that pattern, and the short version in my write-up is that the attack only wins at sizes far beyond the real ones.
Hashes: a scrambler that only runs one way
A hash function turns any message into a fixed-length scramble, and nobody can run it backwards. Signature schemes built only on that idea are the most conservative choice in the contest, because they lean on nothing else. The oldest example is a Lamport signature from 1979. For each bit of the message, you publish two scrambled numbers and keep the two originals secret. To sign, you reveal the original that matches each bit. I made one: the signature came to 8,192 bytes and the public key 16,384 bytes. It verified, and a tampered message failed. SLH-DSA is a far more elaborate version of the same thing, built so one key can sign many messages.
== D. Lamport one-time signature (the hash-only idea behind SLH-DSA) ==
signature size: 8192 B; public key size: 16384 B
verifies: True | tampered message verifies: False
Codes: finding the errors in a scrambled message
The third family hides a message inside deliberate errors, the way a scratched CD can still play because extra data lets the player repair damage. HQC, picked in March 2025, is the backup for ML-KEM. NIST chose it because the maths is different, so a surprise against lattices wouldn’t touch it.
The price: bigger keys
Every new lock is bigger than the one it replaces. Here are the sizes my Python runs produced for the three levels of each lattice standard.

| Standard | Public key | Ciphertext or signature |
|---|---|---|
| ML-KEM-512 | 800 bytes | 768 bytes |
| ML-KEM-768 | 1,184 bytes | 1,088 bytes |
| ML-KEM-1024 | 1,568 bytes | 1,568 bytes |
| ML-DSA-44 | 1,312 bytes | 2,420 bytes |
| ML-DSA-65 | 1,952 bytes | 3,309 bytes |
| ML-DSA-87 | 2,592 bytes | 4,627 bytes |
That’s why the signature side is the harder move. A website certificate chain carries several signatures, and swapping 64-byte ones for 3,000-byte ones makes the handshake much heavier. It’s the reason Cloudflare and Google are working on a different certificate design instead.
Two locks on one door
Nobody wants to bet everything on a new lock that has had a few years of attention, so Chrome, Edge, Firefox and Safari use both by default. The hybrid is called X25519MLKEM768: the old curve lock and the new lattice lock on the same door. The two sides run both key exchanges and mix the two results into one key. An attacker has to break both. If ML-KEM has a flaw, the curve still holds against everyone who doesn’t have a quantum computer. If a quantum computer arrives, ML-KEM still holds.

I built the idea in code to see it work. The client sends a 32-byte curve share and an ML-KEM key, 1,216 bytes in all. The server replies with its own 32-byte share and a 1,088-byte ML-KEM ciphertext, 1,120 bytes. Both sides derive the same 32-byte key. Then I swapped in a wrong ML-KEM half and the keys no longer matched.
Then I ran real handshakes. I set up TLS 1.3 servers and clients on loopback in Node 22, which bundles OpenSSL 3.5.9, and put a small proxy between them to measure the first record each way and read which key exchange the server chose.
| Server and client | Key exchange chosen | Client’s first message | Server’s reply |
|---|---|---|---|
| X25519 only on both | X25519 | 217 bytes | 127 bytes |
| Hybrid preferred, X25519 as fallback | X25519MLKEM768 | 1,403 bytes | 1,215 bytes |
| Hybrid only on both | X25519MLKEM768 | 1,393 bytes | 1,215 bytes |
| Server hybrid only, client X25519 only | Failed with a handshake failure | n/a | n/a |
| Server X25519 only, client offers hybrid first | X25519 | 1,403 bytes | 93 bytes |
| Pure ML-KEM-768 on both | MLKEM768 | 1,361 bytes | 1,183 bytes |
| P-256 hybrid on both | SecP256r1MLKEM768 | 1,426 bytes | 1,248 bytes |

The client’s opening message grew from 217 bytes to about 1,400, which is the ML-KEM public key riding along, so the hybrid costs real bytes. When the server offered only the old lock, the client dropped back to it and the connection worked, so a hybrid-capable client breaks nothing. When a server required the hybrid and the client only knew the old exchange, the handshake failed outright, which is why a server can only go hybrid-only once its users have updated.
What’s happening right now
This is where things stand.
- The hardware isn’t there. Every design on paper needs tens of thousands of good qubits or more. Google’s Willow has 105.
- The paper numbers keep falling. Four teams published RSA-2048 or elliptic-curve estimates in 2026 that sit far below the old ones, and curves come out cheaper than RSA.
- Governments set dates. NIST will deprecate quantum-vulnerable public-key encryption after 2030 and disallow it after 2035. The NSA’s advisory on 2 December told national security system owners to speed up. I covered it in my technical piece and the plain-English guide.
- Companies picked 2029. Cloudflare, Google and Microsoft have each put 2029 on their own migration, and eight big tech companies backed the US guidance in a joint statement. Cloudflare’s CTO says its handshake work is done and its certificates are the open part, with a goal of 2027 for the new design. See the Cloudflare piece and Matthew Prince’s briefing.
- Others are moving too. Australia’s signals agency has told organisations to act now, which I cover in the ASD piece, and the WireGuard VPN’s creator is looking at a post-quantum version 2, in this piece.
- The rumours need a pinch of salt. There’s talk that AI labs have cracked RSA or elliptic curves. I tracked it in the factoring rumour piece and Coinbase’s response. No lab has published a break. Anthropic’s four lattice papers are theory about the new locks, not a break of the old ones, and the authors say they have no practical effect today.
Filippo Valsorda, a cryptography engineer, reads the NSA’s list of algorithms as a sign the 256-bit curves are weaker than people thought. That’s his reading and the NSA hasn’t said it. The agency’s own line is the harvest-now one above.
What to do
If you use a phone, a browser and a few apps, the defence is mostly updates. My guide has four checks that take about 20 minutes. If you run servers, start with the NSA advisory piece: take stock of your encryption, move web servers to TLS 1.3 with the hybrid, and plan for new certificates. Don’t buy anything labelled quantum-proof.
Words you’ll see
- Public-key encryption
- A padlock anyone can close and only the owner can open.
- RSA
- The padlock built on multiplying two big primes.
- Elliptic curve
- The padlock built on hopping around a curve, with smaller keys.
- Qubit
- The quantum version of a bit: a blend of 0 and 1 until measured.
- Logical qubit
- An error-corrected qubit built out of many fragile physical ones.
- Shor’s algorithm
- The 1994 quantum recipe that finds the repeating pattern behind RSA and curves.
- Grover’s algorithm
- A quantum search that only halves the strength of a key, in bits.
- Harvest now, decrypt later
- Recording scrambled traffic today to unscramble it with a future machine.
- ML-KEM
- NIST’s lattice standard for agreeing a secret key (was Kyber).
- ML-DSA
- NIST’s lattice standard for signatures (was Dilithium).
- SLH-DSA
- NIST’s hash-based signature standard (was SPHINCS+).
- HQC
- A code-based backup for ML-KEM that NIST selected in March 2025.
- Hybrid
- Running an old and a new method together so an attacker must break both.
- X25519MLKEM768
- The hybrid key exchange browsers use today.
What I ran
Everything below ran on one cloud machine and on loopback only. The machine was a 4-vCPU Intel Xeon at 2.30 GHz with 15 GiB of memory and a 252 GB virtual disk, running Ubuntu 24.04.5 on Linux 6.18.44. The tools were Python 3.13.18 with numpy 2.5.5, cryptography 51.0.0, kyber-py 1.2.0 and dilithium-py 1.5.1, plus Node 22.23.5 with OpenSSL 3.5.9.
python toy_rsa.py # textbook RSA, then Pollard rho timing on one core
python shor_toy.py # classical simulation of Shor's circuit statistics
python pq_demos.py # hybrid exchange, sizes, toy LWE, Lamport signature
node tls_hybrid.js # loopback TLS 1.3 handshakes through a sniffing proxy
The limits are worth stating. The Pollard rho runs are a simple program, stopped after the 112-bit row, and they say nothing about how long a real attacker takes on a real key. The Shor run is a classical simulation. The post-quantum libraries are pure-Python implementations that I used to measure sizes and to show the ideas, and they’re not production code. The TLS runs used a self-signed certificate on loopback, so they say how clients and servers behave when they disagree, and nothing about any real website.
Sources: Gidney, 2025 (RSA-2048 with under a million qubits); Gidney and Ekerå, 2019; Fowler and colleagues, 2012; Iceberg Quantum, Pinnacle Architecture; Alice & Bob, cat-qubit estimates; Google Quantum AI, elliptic-curve estimates; IonQ; NIST, FIPS 203, 204 and 205; NIST on HQC; NIST IR 8547; NSA press release; Filippo Valsorda.




