What quantum computers change (and what they don't)
Shor's and Grover's algorithms in plain language, which algorithms break and which survive, and an honest look at how close large quantum computers are.
On this page
- What a quantum computer is (enough to follow along)
- Shor's algorithm: the one that breaks public-key crypto
- Grover's algorithm: the one that merely dents symmetric crypto
- Why the "new" algorithms resist quantum attack
- How close is a cryptographically relevant quantum computer?
- The timeline isn't the only question
- What this means for you, concretely
Headlines about quantum computers tend to swing between "all encryption is dead" and "it's decades away, relax". Neither is useful. This article explains, without physics degrees, what a quantum computer can actually do to cryptography, which algorithms that affects, and how to think about the timeline.
What a quantum computer is (enough to follow along)
An ordinary computer stores bits that are 0 or 1. A quantum computer uses qubits, which can be in a superposition, a weighted combination of 0 and 1. Groups of qubits can also be entangled, so that their states are linked. A computation manipulates these combined states so that wrong answers cancel each other out (interference) and right answers reinforce, then measures the result.
A common misconception is that a quantum computer "tries every answer at once" and reads off the right one. It doesn't: a measurement gives you just one outcome. Quantum speed-ups only exist for problems with special structure that interference can exploit. That's why quantum computers are not universally faster, and why they devastate some cryptography and barely dent the rest.
Two more terms you'll see in the news:
- Physical qubits are the real, noisy hardware qubits. Today's machines have hundreds to a few thousand, and they make errors constantly.
- Logical qubits are error-corrected qubits built from many physical ones. Breaking cryptography needs thousands of logical qubits running reliably for hours or days, which today translates to hundreds of thousands to around a million physical qubits, depending on the hardware and error-correction scheme.
A machine capable of breaking real cryptography is often called a cryptographically relevant quantum computer (CRQC). None exists publicly today.
Shor's algorithm: the one that breaks public-key crypto
In 1994, Peter Shor showed that a quantum computer could factor large numbers and compute discrete logarithms in polynomial time, meaning the effort grows modestly as numbers get bigger, instead of exponentially.
The intuition: factoring and discrete logs can both be turned into finding the period of a repeating sequence. Think of a long playlist on shuffle with a hidden repeat: classically you'd have to listen for an extremely long time to spot where it loops. Shor's algorithm uses the quantum Fourier transform to make the loop length "ring out", the way a tuning fork resonates at its frequency, so it can be read after a modest number of runs. From the period, ordinary maths recovers the factors or the secret exponent.
The consequences:
| Algorithm family | Hard problem | Against Shor's algorithm |
|---|---|---|
| RSA (any key size) | Factoring | Broken |
| Diffie-Hellman (finite field) | Discrete log | Broken |
| ECDH, X25519, X448 | Elliptic-curve discrete log | Broken |
| ECDSA, Ed25519, Ed448, DSA | Discrete log | Broken |
"Broken" here means completely: the private key can be recovered from the public key. Making keys bigger only raises the bar modestly.
Grover's algorithm: the one that merely dents symmetric crypto
In 1996, Lov Grover found a quantum algorithm for unstructured search. Finding one marked item among N takes about √N steps instead of N. Applied to brute-forcing a key, a 128-bit key (2^128 possibilities) could in principle be found in about 2^64 quantum steps.
That sounds alarming but it's much weaker than it looks:
- Grover's steps must run one after another on a fault-tolerant machine; they don't parallelise well. Splitting the search across many quantum computers saves much less than it does classically.
- Each step is a full quantum evaluation of AES, which is enormously expensive in error-corrected gates.
- Realistic estimates of a Grover attack on AES-128 are far beyond any foreseeable hardware.
NIST's position (in its post-quantum security categories and in NIST IR 8547) is that AES-128 remains acceptable, and its strongest category is defined as "as hard as breaking AES-256". Organisations that want extra margin, and anything under the NSA's CNSA 2.0 suite, use AES-256. Hash functions are similar: SHA-256 and above are fine, and SHA-384/512 give extra margin.
| Algorithm | Quantum attack | Status |
|---|---|---|
| AES-128 | Grover, impractical | Acceptable (NIST) |
| AES-256, ChaCha20 | Grover, impractical | Safe |
| SHA-256, SHA-3 | Grover / collision search, impractical | Safe |
| SHA-384, SHA-512 | Same | Safe, extra margin |
| HMAC-SHA-256 | Same | Safe |
| Argon2id, scrypt, bcrypt | Same | Safe (strength depends on the password) |
| MD5, SHA-1, DES, 3DES, RC4 | Classical attacks already work | Already broken: replace now |
So the honest summary: quantum computers break public-key cryptography and leave symmetric cryptography and hashing essentially intact. Moving to longer symmetric keys is cheap insurance; replacing public-key algorithms is the real work.
Why the "new" algorithms resist quantum attack
Post-quantum algorithms are not quantum technology. They are ordinary software, running on ordinary computers, based on maths problems where no efficient quantum algorithm is known:
- Lattice problems (behind ML-KEM, ML-DSA and FN-DSA): imagine a grid of points in hundreds of dimensions, with some deliberate noise added. Finding the hidden short vector, or the closest grid point to a noisy target, looks hard for both classical and quantum computers. There is no hidden period for Shor's algorithm to find.
- Hash-based signatures (SLH-DSA, LMS, XMSS): their security reduces to properties of the hash function, which only Grover's modest speed-up affects.
- Code-based problems (HQC, and Classic McEliece, which ISO is standardising separately): decoding a random-looking error-correcting code has resisted cryptanalysis since McEliece proposed it in 1978.
"No known quantum attack" is not the same as "proven secure", which is why the standards include algorithms based on different maths, and why many deployments combine a new algorithm with a classical one in hybrid mode (see Hybrid cryptography). It's also worth remembering that NIST's competition knocked out candidates along the way: SIKE, an isogeny-based candidate still in the fourth round, was broken in 2022 by a classical attack that ran in about an hour on a laptop. Cryptanalysis is how the process is supposed to work.
How close is a cryptographically relevant quantum computer?
Nobody knows, and anyone who gives you a confident year is guessing. What we can do is look at the trend in published estimates and hardware.
Resource estimates have fallen sharply. The number of qubits estimated to factor RSA-2048 keeps dropping as algorithms and error correction improve:
Published estimates for breaking RSA-2048 (physical qubits, rough)
2019 Gidney & Ekerå ~20,000,000 qubits, ~8 hours
2025 Gidney <1,000,000 qubits, <1 week
2026 Newer claims (e.g. cat-qubit and qLDPC designs) report
designs in the tens of thousands to ~100,000 qubits,
depending heavily on hardware assumptionsThe 2019 and 2025 figures come from peer-reviewed or widely scrutinised papers by Craig Gidney (Google Quantum AI) and Martin Ekerå. The 2026 claims are from companies designing specific hardware architectures and depend on qubit types that haven't been built at scale; treat them as signals of direction rather than settled facts.
Hardware is improving, but is still far off. In December 2024 Google announced its Willow chip (105 qubits), which showed that adding more qubits to an error-correcting code made errors go down, a key milestone. Several companies publish roadmaps targeting fault-tolerant machines around the end of this decade. But today's machines are still several orders of magnitude away from what Shor's algorithm needs for RSA-2048 or P-256.
The expert view. Surveys of quantum researchers (such as the Global Risk Institute's annual Quantum Threat Timeline report) consistently put a meaningful probability on a CRQC within 10–15 years and a substantial probability within 20. Governments have reached the same conclusion: the US (NIST IR 8547), the NSA (CNSA 2.0), the UK NCSC and the EU all target finishing migration of important systems between 2030 and 2035. The deadlines article has the details.
The timeline isn't the only question
Two factors make "it's years away" a weaker argument than it sounds:
- Data recorded today can be decrypted later. If your data needs to stay secret for ten years, the deadline isn't "when a CRQC arrives", it's "ten years before a CRQC arrives". That's harvest now, decrypt later.
- Migrations are slow. The move from SHA-1 to SHA-256 took well over a decade across the industry. Replacing every RSA and elliptic-curve key in protocols, certificates, hardware and partners' systems is a bigger job.
You also shouldn't expect a public announcement. A state actor that built a CRQC would have every reason to keep quiet.
What this means for you, concretely
- Key exchange (TLS, SSH, VPNs, envelope encryption) is the urgent item, because of recordings. The good news is that much of this is already done for you: modern browsers, CDNs, Go, Java, Node.js with OpenSSL 3.5 and OpenSSH 10 negotiate hybrid post-quantum key exchange by default. Your job is mostly to make sure nothing in your stack (an old load balancer, a pinned cipher list, an outdated runtime) is blocking it.
- Signatures need planning: certificates, code signing, JWTs and firmware. Standards and tooling are arriving but are less mature.
- Symmetric crypto and hashes need no quantum changes beyond preferring AES-256 and SHA-256+ where cheap. But fix MD5, SHA-1, DES and friends now; they're broken today.
Run npx -y pqe-cli scan . on a repository to see which of these categories your code falls into; each finding is labelled with its quantum status.
Next: Harvest now, decrypt later: why the timeline matters for data you send today.