Post-quantum cryptography

What it is, why it is needed before there is a quantum computer able to break RSA, and what NIST has standardized.

Post-quantum cryptography is the set of algorithms that replace RSA, Diffie-Hellman and elliptic curves, which today protect almost every connection and digital signature and which a large enough quantum computer would break. They run on the same computers, phones and networks as always and, as far as is known today, withstand both an ordinary computer and a quantum one.

What is post-quantum cryptography?

Post-quantum cryptography (PQC, also written postquantum and sometimes called quantum-safe or quantum-resistant cryptography) is public-key cryptography designed to withstand attacks by quantum computers. It does the same two jobs as RSA and elliptic curves: agreeing on keys between two parties that share no secret, as Diffie-Hellman does, and signing, so that anyone can check who wrote a message or published a program.

What changes is the underlying mathematical problem. RSA relies on factoring huge numbers being hard; Diffie-Hellman and elliptic curves, on the discrete logarithm. A quantum computer would solve both. Post-quantum algorithms rely on other problems, for which no efficient quantum algorithm is known.

“Post-quantum” does not mean that it uses quantum physics: it means that it is designed for when quantum computers exist that can break today's cryptography.

Why it is needed now

In 1994, Peter Shor published a quantum algorithm that factors numbers and computes discrete logarithms in reasonable time. With it, a capable enough quantum computer would derive the private key from an RSA, Diffie-Hellman or elliptic curve public key. That machine does not exist yet, but the one needed keeps getting smaller: we explain how Shor works and what computer it needs in Shor's algorithm, and when it might arrive in Q-Day.

The second reason explains the hurry. Someone can record an encrypted communication today and keep it until they have that computer. If the key was agreed with classical public-key cryptography, the recording would yield the key and, with it, the content. NIST calls this threat harvest now, decrypt later and cites it as one of the main reasons for urgency, because a lot of data, such as a medical record or a state secret, stays sensitive for years. We explain it in more detail in “Harvest now, decrypt later”.

Quantum vs post-quantum cryptography

Post-quantum cryptography is software: mathematics that runs on any computer. Quantum cryptography, by contrast, uses physics. Its best-known application is quantum key distribution (QKD): it sends quantum states of light over a fiber or via satellite to agree on a key. It needs dedicated equipment and channels.

In 2024, the cybersecurity agencies of France, Germany, the Netherlands and Sweden concluded that QKD is only useful today in a few very specific cases and is not yet mature from a security point of view. Over fiber, commercial systems reach about a hundred kilometers; beyond that they need intermediate nodes that have to be trusted. Moreover, it does not authenticate the parties: to do so it needs a pre-shared key or post-quantum signatures, and in that case its security also ends up depending on post-quantum cryptography. Their recommendation, like that of the UK's NCSC, is to give priority to post-quantum cryptography (or, where possible, to pre-shared symmetric keys).

Types of post-quantum algorithms

There are several families, depending on the hard problem they rely on:

  • Lattices (lattice-based cryptography). Problems about the points of a grid with hundreds of dimensions, such as solving equations to which a small error has been added. This is the main family: ML-KEM, ML-DSA and FN-DSA come from it.
  • Hash functions. Signatures built only from hash functions such as SHA-2 or SHA-3, which are very well understood. They are larger or slower, but they are the most conservative option: SLH-DSA and the stateful signatures LMS and XMSS.
  • Error-correcting codes. The same ones that fix errors in transmissions. Their security rests on the fact that correcting the errors of a randomly chosen code is hard unless you know the error that was added. HQC belongs to this family.
  • Isogenies between elliptic curves. They gave the smallest keys, until in July 2022 Wouter Castryck and Thomas Decru broke SIKE, which was in NIST's fourth round, with a single core of an ordinary computer: its lowest security level in an hour (ten minutes with the improved version of the attack), and its highest in about twenty-one hours. Not the whole family fell: the isogeny-based signature SQIsign is still under study.

There are others, such as multivariate equations, which NIST is studying in a separate process for additional signatures.

NIST's post-quantum algorithms

NIST, the US standards agency that already chose AES, opened a public selection process in 2016. It received 82 submissions by November 2017, accepted 69 for the first round and, over several rounds, cryptographers from around the world tried to break them. In July 2022 it chose four, and on 13 August 2024 it published the first three standards:

StandardNameFormerlyUsed forFamily
FIPS 203ML-KEMCRYSTALS-KyberKey exchangeLattices
FIPS 204ML-DSACRYSTALS-DilithiumSigningLattices
FIPS 205SLH-DSASPHINCS+Signing (backup for ML-DSA)Hash functions

The fourth one chosen, Falcon, will become FN-DSA (FIPS 206), but not even the draft has been published yet: in September 2026, NIST was still working out how to specify it. In March 2025, after a fourth round, it chose HQC as a backup for ML-KEM: it is based on different mathematics and would be useful if a weakness appeared in ML-KEM. Its standard (FIPS 207) has no draft yet either. The stateful hash-based signatures LMS and XMSS have been approved since 2020 (SP 800-208).

What changes and what does not

Public-key cryptography changes: everything that agrees on keys or signs with RSA, Diffie-Hellman or elliptic curves, from HTTPS connections and VPNs to certificates, software updates and the signatures of cryptocurrencies such as bitcoin. NIST's transition plan (IR 8547, final since October 2026) deprecates those algorithms after 2030 and removes them from its standards after 2035.

Symmetric ciphers and hashes do not change: against AES, SHA-2 or SHA-3, the known quantum attacks, such as Grover's algorithm, speed up brute force but do not break them. Post-quantum cryptography still needs them: ML-KEM only agrees on a key, and what is sent is encrypted with a symmetric algorithm such as AES.

The price of the change is size. To agree on a key with ML-KEM-768, one party sends 1,184 bytes and the other replies with 1,088; with X25519, each sends 32. An ML-DSA-44 signature takes up 2,420 bytes, compared with 64 for Ed25519.

Hybrids and crypto-agility

The new algorithms have had fewer years of analysis than the classical ones, so the usual approach is to combine them. A hybrid scheme uses a classical and a post-quantum algorithm at the same time and, if combined properly, stays secure as long as one of the two holds: if a flaw appears in the new one, today's protection remains; if the quantum computer arrives, the post-quantum one remains. NIST accepts this as a transition measure, and the European agencies mentioned above recommend it. HTTPS uses X25519MLKEM768, which combines X25519 and ML-KEM-768 to agree on the key and which the IETF published as a standard (RFC 10024) in August 2026. The HTTPS connection to this site uses it when the browser supports it; further down you can check whether yours does.

The other lesson is crypto-agility: the ability to replace one algorithm with another without rebuilding systems. NIST asks for it to be built in, because post-quantum standards will keep changing. The SIKE case shows why. And at the end of November 2026, Anthropic published a theoretical quantum attack on the structured lattices that ML-KEM and ML-DSA are built on. According to the first assessment of the Cryptography Incident Review Group, a group of outside cryptographers, with those standards' real parameters it costs far more than the attacks already known, so there is still no known efficient quantum attack against ML-KEM and ML-DSA. Even so, the company says it lowers its long-term confidence in structured lattices.

What do I need to do?

If you use your computer and phone like most people, almost nothing: browsers, operating systems and apps do the migration, and it arrives with their updates. Keeping them up to date is what helps most. What you encrypt on Cifrar Online with AES-256, XChaCha20 or another 256-bit cipher needs no change, because a quantum computer does not break it (we explain why in Grover's algorithm); what matters is a good password.

A company or a public body has more work to do. The joint guide from CISA, the NSA and NIST suggests starting with a migration roadmap, an inventory of where public-key cryptography is used (servers, VPNs, certificates, software signing, third-party products) and asking suppliers about their post-quantum plans. Because of “harvest now, decrypt later”, the most urgent data is whatever has to stay secret the longest. It also pays to prepare systems to switch algorithms without rebuilding them. The deadlines governments have set are in Q-Day.

Is your connection post-quantum yet?

Your browser checks it when it opens this page, with the details from Cloudflare, which receives the connection. It only covers the leg between your browser and Cloudflare: not the rest of the way to our server, nor your connections to other sites. We do not store the result.

Checking your connection…

Further reading

  • Shor's algorithm: how it would break RSA and elliptic curves, and what machine it would need.
  • Q-Day: when that machine might exist and what deadlines governments have set for migrating.
  • The bitcoin crash and the quantum risk: why Shor would affect its elliptic curve signatures, which coins would be exposed and what is being proposed.
  • Grover's algorithm: what a quantum computer can do against AES, hashes and passwords.

Sources: Shor (1994) · NIST IR 8547 · ANSSI, BSI, NLNCSA, Swedish NCSA: Position Paper on QKD (2024) · NCSC: Quantum security technologies · NIST: First 3 Finalized Post-Quantum Encryption Standards (2024) · FIPS 203 (ML-KEM) · FIPS 205 (SLH-DSA) · NIST SP 800-208 · NIST IR 8240 · NIST PQC Call for Proposals · draft-preussmattsson-tls-hqckem-03 · NIST IR 8413 · NIST IR 8545 · NIST: HQC (2025) · NIST PQC Standardization · pqc-forum: New plan for FN-DSA (2026) · NIST Additional Signatures, Round 3 · Castryck, Decru (2022) · pqc-forum: SIKE (2022) · Cloudflare: The state of the post-quantum Internet (2024) · RFC 10024 (X25519MLKEM768) · NIST CSWP 39 · CIRG (2026) · Anthropic (2026) · CISA, NSA, NIST: Quantum-Readiness (2023).