Post-Quantum Cryptography
Find out why quantum computers threaten some encryption, what the new NIST standards replace, and what you can reasonably do now.
Key takeaways
- A large, error-corrected quantum computer could break RSA, Diffie-Hellman and elliptic-curve cryptography.
- Symmetric ciphers and hash functions are affected far less, and generous sizes keep a wide safety margin.
- NIST published its first post-quantum standards in 2024, covering key establishment and digital signatures.
- Attackers can record encrypted traffic now and try to decrypt it later, so long-lived secrets are the urgent case.
- Most people only need to keep software updated, while organizations should inventory where they use public-key cryptography.
Post-quantum cryptography is a set of encryption and signature methods designed to resist attacks by large quantum computers while running on the ordinary computers you already use. It matters because the public-key methods behind most secure connections today, RSA and elliptic curves, could be broken by a sufficiently capable quantum machine.
No such machine is publicly known to exist, and estimates of when one might appear differ widely. The replacements are being rolled out anyway, because migrations take many years and some data recorded today will still be sensitive later.
What quantum computers change
A quantum computer works with quantum bits, or qubits, and uses effects such as superposition and interference. It is not a faster version of a normal computer. It offers large speedups for particular kinds of problems and none for many others.
Two algorithms matter here. Shor's algorithm, described in the 1990s, solves integer factoring and discrete logarithms efficiently on a large enough quantum computer. Those are exactly the problems that protect RSA, Diffie-Hellman and elliptic-curve methods.
Grover's algorithm speeds up brute-force search, but only quadratically. Against symmetric keys it roughly halves the effective key length in the idealized case, and in practice it is hard to run efficiently. A 256-bit symmetric key keeps a comfortable margin.
| Cryptography | Typical job | Quantum impact | Usual response |
|---|---|---|---|
| RSA | Signatures, key transport | Broken by Shor | Replace |
| Elliptic curves and Diffie-Hellman | Key agreement, signatures | Broken by Shor | Replace |
| AES | Bulk encryption | Weakened somewhat by Grover | Prefer larger keys where policy requires |
| SHA-2 and SHA-3 | Fingerprints | Modest effect | Use adequate output sizes |
Today's experimental quantum processors are noisy and small compared with what breaking real keys is expected to require. Building enough reliable, error-corrected qubits is a major engineering challenge.
Harvest now, decrypt later
An adversary with large storage can capture encrypted traffic today and keep it. If a capable quantum computer arrives, recorded key exchanges could be attacked and the sessions opened.
That risk depends on how long the information stays sensitive. A one-time login code is worthless tomorrow. Medical records, state secrets, long-term business plans and identity data can matter for decades.
A useful way to think about urgency is to add the number of years your data must stay secret to the number of years your migration will take. If that total could exceed the time until a capable machine exists, which nobody knows for certain, you are already late for that data.
Signatures face a different timing. A forged signature is useful only while someone still trusts the old key. Long-lived roots of trust, such as keys built into hardware that stays in service for many years, need early attention.
The new standards
After a multiyear public competition, NIST published three standards in 2024:
- FIPS 203, ML-KEM, derived from CRYSTALS-Kyber. It is a key encapsulation mechanism for establishing shared secrets.
- FIPS 204, ML-DSA, derived from CRYSTALS-Dilithium. It is the main general-purpose signature standard.
- FIPS 205, SLH-DSA, derived from SPHINCS+. It is a signature scheme built only on hash functions, offered as a conservative alternative with larger signatures.
NIST has also worked on further algorithms, including a compact signature scheme based on Falcon and a backup key-establishment method called HQC that rests on different math. Check NIST's current publications for their status.
A key encapsulation mechanism works a little differently from Diffie-Hellman. One side publishes a public key. The other uses it to create a random shared secret together with a ciphertext. The owner of the private key recovers the same secret from the ciphertext.
Different math, bigger messages
The new methods rest on problems for which no efficient quantum algorithm is known. ML-KEM and ML-DSA are based on structured lattices, roughly the difficulty of recovering hidden information from noisy systems of equations in many dimensions. Hash-based signatures rely on the strength of hash functions. Other research families use error-correcting codes.
"No known efficient attack" is the honest wording. Some candidates examined during the competition were broken by classical methods, which is one reason designers like to combine old and new.
The most visible cost is size.
Basis: RFC 7748, RFC 8032, FIPS 203 and FIPS 204 encodings.
ML-KEM is computationally quick, so the extra bytes are the main issue for key exchange. Signatures are trickier because a single web handshake can carry several signatures and public keys in its certificate chain. That is part of why key exchange has moved first, while post-quantum certificates need more design work and ecosystem changes.
Larger messages can also expose bugs in old network equipment that assumed a handshake's first message fits in one packet.
Hybrid deployment
Many early deployments use hybrid key exchange: a classic method such as X25519 runs alongside ML-KEM, and both results feed into the session key. An attacker would need to break both. If a flaw appears in the new algorithm, the old one still protects against today's computers.
Several major browsers, web services, messaging apps and SSH software have begun supporting hybrid post-quantum key exchange. Details depend on versions and settings, so check your software's documentation. On a recent OpenSSH, this command lists the key exchange methods your client knows:
ssh -Q kex Names containing mlkem or sntrup indicate post-quantum hybrid options.
Where the change shows up first
Different systems move at different speeds, mostly according to how easily they can be updated and how exposed their data is to recording.
Web and app connections are moving early on key exchange, because browsers and large services update often and a hybrid method can be negotiated automatically. If either side doesn't support it, they fall back to a classic method.
Messaging protocols with strong designs have started adding post-quantum key material to the way conversations begin, and in some cases to how keys are refreshed. The app's security documentation should say which parts are covered.
Remote access and VPNs depend on the versions on both ends. A new client talking to an old gateway gets the old protection, so upgrades need to be planned in pairs.
Certificates and code signing involve many parties: authorities, browsers, operating systems and standards groups. They will change more slowly.
Embedded and industrial devices are the hardest. A meter, sensor or controller may have limited memory, no practical update path and a long service life. Buyers can ask now whether new equipment can accept new algorithms and larger keys.
What can go wrong during a migration
Swapping algorithms isn't a single switch. Some firewalls and inspection devices mishandle larger handshake messages, so connections fail in ways that look like ordinary network faults. Database fields and protocol buffers sized for tiny signatures may truncate bigger ones. Hardware security modules and smart cards may need new firmware or replacement.
There is also the risk of immature implementations. New code can have bugs, including timing leaks, even when the underlying standard is sound. That argues for using maintained libraries, keeping hybrid modes where available and testing with a rollback plan. It doesn't argue for waiting until the last moment, when changes would have to be rushed.
What you should do
As an individual
- Keep your operating system, browser and apps updated. Most of the change arrives that way.
- Prefer services that document their migration if you handle long-lived secrets.
- Don't buy products solely because they say "quantum-proof." Ask which published standard they use.
- Keep ordinary defenses strong. Phishing and reused passwords are far more likely threats.
As an organization
- Inventory where public-key cryptography is used: TLS, VPNs, SSH, code signing, email, backups, devices and vendor products.
- Classify data by how long it must remain confidential.
- Ask vendors for roadmaps and supported standards.
- Build crypto agility, the ability to swap algorithms through configuration and updates instead of redesign.
- Test larger keys and signatures with your networks and storage.
- Prioritize long-lived data and hard-to-update hardware.
Several governments have published migration timelines that reach into the 2030s, and requirements for contractors and regulated sectors continue to develop. Confirm the current guidance that applies to you.
Don't confuse it with quantum key distribution
Quantum key distribution uses physical properties of light to share keys and needs special hardware and links, usually point to point. Post-quantum cryptography is ordinary software based on math, which can run over the existing internet. They address overlapping goals in very different ways, and the second is what most people will use.
Common questions
Is my current encryption already broken?
There is no public evidence of a quantum computer able to break properly sized RSA or elliptic-curve keys. The concern is about the future, including data recorded now.
Do I need to re-encrypt my files?
Files protected with strong symmetric encryption and a strong key are in much better shape than data whose key was protected only by RSA or elliptic curves. If long-term secrecy matters, review how the keys were wrapped. Symmetric vs. public-key encryption explains the difference.
Are digital signatures affected?
Yes, the classic ones would be forgeable by a capable quantum computer, which is why signature systems and certificate authorities are planning replacements.