isquantumsafe Check a domain

What is post-quantum cryptography, and where did it come from?

A plain-English history of post-quantum cryptography, from Shor's algorithm in 1994 to ML-KEM and the hybrid key exchange now used on the web.

Post-quantum cryptography (PQC) is ordinary software cryptography designed to stay secure even against an attacker who owns a large quantum computer. It runs on today's phones, laptops and servers. Nothing about it needs quantum hardware. The name describes the threat it is built to survive, not the technology it uses.

The problem: Shor's algorithm

Almost all public-key cryptography on the internet rests on two maths problems: factoring large numbers (RSA) and discrete logarithms, including the elliptic-curve version (ECDH, ECDSA). Both are believed to be hard for classical computers.

In 1994 the mathematician Peter Shor showed that a quantum computer could solve both efficiently. Shor's algorithm, presented at the FOCS conference that year, means that a large enough, error-corrected quantum computer would break RSA, Diffie-Hellman and elliptic-curve cryptography outright. Making keys longer does not help.

Two years later, in 1996, Lov Grover published a second quantum algorithm for unstructured search. Grover's algorithm gives only a quadratic speedup: brute-forcing a 128-bit key takes roughly 2^64 steps instead of 2^128. That weakens symmetric ciphers such as AES but does not break them, and longer keys (AES-256) restore the margin. This is why the post-quantum effort focuses on public-key cryptography.

The answer: new hard problems

The fix is to base public-key cryptography on problems that no known quantum algorithm solves efficiently. Several families exist, including hash-based, code-based and lattice-based schemes. Lattices became the main one.

The roots go back to 1996, when Miklós Ajtai built the first lattice-based construction whose security could be tied to well-studied lattice problems. In 2005 Oded Regev introduced the Learning With Errors (LWE) problem and the first lattice-based public-key encryption scheme with a worst-case hardness proof. Regev received the 2018 Gödel Prize for this work. Structured variants of LWE, which make keys smaller and faster to use, sit underneath today's main standard.

The NIST competition

The US National Institute of Standards and Technology announced its post-quantum standardisation project in 2016 and issued a call for proposals that December. According to the project's history, 82 schemes were submitted by the end of 2017 and 69 entered the first round. Round two began in January 2019, and round three began in July 2020 with seven finalists and eight alternates.

On 5 July 2022 NIST announced its first selections: CRYSTALS-Kyber for key establishment, and CRYSTALS-Dilithium, Falcon and SPHINCS+ for signatures. Kyber was designed by a team of academic and industry cryptographers from Europe and North America, part of the CRYSTALS suite, and derives from Regev's 2005 LWE work.

On 13 August 2024 NIST published the first three final standards:

  • FIPS 203, ML-KEM (from Kyber), for key establishment
  • FIPS 204, ML-DSA (from Dilithium), for digital signatures
  • FIPS 205, SLH-DSA (from SPHINCS+), a hash-based signature

On 11 March 2025 NIST selected HQC, a code-based scheme, as a backup to ML-KEM. It uses different maths, so it gives a fallback if lattices ever fail. NIST said ML-KEM remains the recommended choice for general encryption.

Why act before quantum computers exist

The urgency comes from "harvest now, decrypt later". An attacker can record encrypted traffic today, store it, and decrypt it once a capable quantum computer exists. Anything that must stay confidential for years, such as health records, trade secrets or government data, is already exposed if it travels over connections protected only by classical key exchange.

Signatures are different. A forged signature only matters once an attacker can actually forge it, so signatures need replacing before quantum computers arrive, not before data is recorded. That is why the web moved key exchange first.

Hybrid key exchange: X25519MLKEM768

Most of the web did not switch straight from classical to post-quantum key exchange. It uses a hybrid. The common one, X25519MLKEM768, runs a classical X25519 elliptic-curve exchange and an ML-KEM-768 exchange in the same TLS handshake, then combines both secrets. An attacker has to break both to read the traffic.

The reasoning is caution. X25519 has years of real-world use behind it. ML-KEM is newer. If a flaw is found in either, the other still protects the session. The IETF published this design as RFC 10024 in August 2026, defining X25519MLKEM768 alongside two variants built on NIST curves.

The cost is size. An ML-KEM-768 public key is 1,184 bytes and its ciphertext 1,088 bytes, compared with 32 bytes for X25519. In practice this adds a little data to each handshake, and most connections absorb it without trouble.

What to do

Post-quantum key exchange is the one part of this migration most organisations can turn on today. It mostly depends on your TLS library, CDN or load balancer being current. To see whether a site already negotiates X25519MLKEM768, run it through the free checker at isquantumsafe.net.