What is post-quantum cryptography?
· 5 min read
Why quantum computers break RSA and elliptic curves, what NIST standardised to replace them, and what it means for a website.
Almost every secure connection on the internet starts with public-key cryptography: RSA or elliptic curves (ECDH, ECDSA). They are safe because the maths behind them, factoring large numbers and computing discrete logarithms, would take a classical computer longer than the age of the universe.
In 1994 Peter Shor showed that a large enough quantum computer could solve both problems quickly. Nobody has built that machine yet, but when someone does, RSA and elliptic-curve cryptography stop protecting anything. That moment is often called Q-Day.
What post-quantum cryptography is
Post-quantum cryptography (PQC) is a set of new public-key algorithms built on maths problems that are believed to be hard for both classical and quantum computers. They run on ordinary computers and phones. No quantum hardware is needed to use them.
In August 2024, NIST published the first three standards:
| Standard | Algorithm | Replaces |
|---|---|---|
| FIPS 203 | ML-KEM | Key exchange (ECDH, RSA key transport) |
| FIPS 204 | ML-DSA | Signatures (RSA, ECDSA) |
| FIPS 205 | SLH-DSA | Signatures, as a conservative hash-based backup |
ML-KEM and ML-DSA are based on lattices; SLH-DSA relies only on hash functions. NIST has since picked more algorithms as backups, so the field isn't betting everything on one kind of maths.
It's not the same as quantum cryptography
"Quantum cryptography" usually means quantum key distribution (QKD), which uses special hardware and dedicated links. Post-quantum cryptography is just software, and it's what browsers, servers and operating systems are adopting.
What about AES and passwords?
Symmetric encryption like AES and hash functions like SHA-256 are only modestly weakened by quantum computers. AES-256 remains safe. The urgent problem is public-key cryptography, because that's what sets up every HTTPS connection.
What it means for a website
HTTPS uses public-key cryptography in two places, and they're on different schedules:
- Key exchange: fix it now. The browser and server agree on a secret key for the session. Current Chrome, Edge, Firefox and Safari already offer the hybrid post-quantum key exchange
X25519MLKEM768. Your server just has to accept it. - Certificates: wait for your CA. Certificates are signed with RSA or ECDSA today. Post-quantum certificates aren't widely available from public certificate authorities yet. Forging a signature needs a quantum computer at the moment of the attack, so this can wait until CAs offer them.
Key exchange comes first because of harvest now, decrypt later: traffic recorded today can be decrypted once Q-Day arrives.