Post-quantum cryptography
Why a future quantum computer would break RSA and elliptic curves but not AES, why that matters already, and the lattice puzzles behind the new NIST standards.
In 30 seconds
Most of today’s public-key cryptography, such as RSA and elliptic curves, relies on maths puzzles that a large quantum computer could solve quickly using Shor’s algorithm. No such machine exists yet.
Symmetric ciphers and hashes are only weakened, and longer keys fix that. But traffic recorded today could be decrypted later, so the switch has already begun.
Post-quantum cryptography runs on ordinary computers and uses different puzzles, mostly about lattices, that no known quantum method solves. NIST standardised the first three schemes in 2024.
Post-quantum cryptography, step by step
The lattice and the equations are toy-sized. That lattice problems are hard is a well-tested belief, not a proven fact, which is one reason NIST also standardised a signature built only on hashes.
- Step 1: Locks built on hard maths. Public-key cryptography protects web traffic, software updates and signatures. Each scheme rests on a puzzle that is easy to set and, as far as anyone knows, infeasible for ordinary computers at real key sizes: factoring a huge number for RSA, a discrete logarithm for Diffie–Hellman and elliptic curves.
- Step 2: Shor’s algorithm opens both. In 1994 Peter Shor showed that a quantum computer can find the hidden repeating pattern behind both puzzles, and so solve them efficiently. Bigger keys do not help much. The catch is the machine: it needs thousands of stable, error-corrected qubits, far beyond anything built so far.
- Step 3: Symmetric crypto bends. Ciphers like AES and hashes like SHA-256 have no hidden pattern for Shor to exploit. The best quantum attack, Grover’s algorithm, only speeds up trying every key: it halves the effective key length. A 256-bit key still leaves 128 bits of strength, so these tools survive with longer keys.
- Step 4: Harvest now, decrypt later. An eavesdropper does not need the quantum computer today. She can record encrypted traffic now, store it, and decrypt it whenever the machine arrives. Anything that must stay secret for many years is therefore exposed already, which is why the switch is happening before the threat is real.
- Step 5: A new puzzle: lattices. A lattice is a regular grid of points built from a few arrows. With short, nearly square arrows, finding the grid point nearest to a target is easy. With long, slanted arrows for the same grid it is not, and in hundreds of dimensions no fast method is known, for classical or quantum computers.
- Step 6: Equations with small errors. The lattice puzzle is used in a form called learning with errors. The secret is a list of numbers; the public key is a set of sums over them, each nudged by a small random error. Exact sums fall to school algebra. With the errors, recovering the secret is a lattice problem. ML-KEM-768 uses 768 unknowns.
- Step 7: The NIST standards. After an open competition that began in 2016, the US standards body NIST published three standards in August 2024. ML-KEM agrees on keys and ML-DSA signs, both on lattices; SLH-DSA signs using only hashes, as a backup on different maths. Many systems now run old and new together, so both would have to fail.
Try it yourself
Learn this first
Spotted a mistake on this page?