qsafe.sh
Scan
Theme

Learn

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:

StandardAlgorithmReplaces
FIPS 203ML-KEMKey exchange (ECDH, RSA key transport)
FIPS 204ML-DSASignatures (RSA, ECDSA)
FIPS 205SLH-DSASignatures, 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 comes first because of harvest now, decrypt later: traffic recorded today can be decrypted once Q-Day arrives.

Esc