Post-Quantum Encryption 101
Status: Complete short course. Written 2026-11-20; not yet reviewed by an outside expert.
What future quantum computers could break, what they could not, and the new standards that replace the weak parts.
A self-paced beginner course in six lessons. Everything is on this page. No maths beyond powers of two is needed, and you do not need to know how a quantum computer works inside.
Start the lessons Back to the Learning Database
- 6lessons
- ~30 minper lesson (estimate)
- ~3 htotal (estimate)
- 16self-check questions
How It Works
Each lesson takes about 10 to 15 minutes to read. The estimates of about 30 minutes include working through the example and answering the questions; they are guesses, not measurements. The answers are hidden: try first, then open them.
The Lessons
Lesson 1: Two kinds of encryption
Symmetric encryption uses one secret key to lock and unlock. Both sides must already share that key. The standard today is AES (the Advanced Encryption Standard), with keys of 128, 192 or 256 bits. It is fast and is used for nearly all bulk data: files on disk, video streams, web pages.
Public-key encryption uses a pair of keys: a public key you can give anyone, and a private key you keep. It solves the problem symmetric encryption cannot: how two strangers agree on a shared secret over an open network. It is also used for digital signatures, which prove who sent something and that it was not changed. Today's common public-key methods are RSA and elliptic-curve cryptography (ECC).
Worked example: opening a secure web page
- Your browser and the website use a public-key method (for example elliptic-curve key exchange) to agree on a fresh shared secret, even though anyone could be listening.
- The website proves it is genuine with a digital signature on its certificate.
- From the shared secret, both sides make AES keys and use fast symmetric encryption for the rest of the visit.
Keep this picture in mind: public-key methods set things up, symmetric encryption does the heavy work. The quantum threat hits the two very differently.
Check yourself
- What problem does public-key encryption solve that symmetric encryption cannot on its own?
Answer
Agreeing on a shared secret with someone you have never met, over a network others can listen to.
- In a secure web connection, which kind of encryption protects the bulk of the data?
Answer
Symmetric encryption (such as AES), using keys agreed with public-key methods at the start.
Lesson 2: Shor's algorithm: the real threat
RSA is safe because multiplying two huge prime numbers is easy but splitting the result back into them (factoring) is extremely hard for ordinary computers. Elliptic-curve methods rely on a similar one-way problem (the discrete logarithm).
In 1994 Peter Shor showed that a large enough quantum computer could solve both problems efficiently. That would break RSA and elliptic-curve cryptography completely: an attacker could work out private keys from public keys, read key exchanges and forge signatures. Making the keys bigger does not help much against Shor's algorithm.
No quantum computer today is anywhere near big and reliable enough. NIST says no one knows when one will exist, and that expert estimates range from a few years to a few decades. Because replacing cryptography across the world's systems takes many years, the work has started now.
Worked example: what breaks
| Used for | Today | Effect |
|---|---|---|
| Agreeing keys | RSA, elliptic-curve Diffie-Hellman | Broken |
| Signatures | RSA, ECDSA, Ed25519 | Broken |
| Bulk encryption | AES | Not affected by Shor's algorithm (see lesson 3) |
Check yourself
- Which hard maths problems does Shor's algorithm solve?
Answer
Factoring large numbers (behind RSA) and discrete logarithms (behind elliptic-curve cryptography).
- Can we protect RSA from Shor's algorithm by doubling the key size?
Answer
Not in any practical way. Shor's algorithm scales well with key size, so the fix is to move to different methods.
- Do large enough quantum computers exist today?
Answer
No. NIST says no one knows when they will, with estimates from a few years to a few decades.
Lesson 3: Grover's algorithm: a smaller threat
For symmetric keys, the best known quantum attack is Grover's algorithm (Lov Grover, 1996). It speeds up a blind search: instead of trying about N possibilities, it needs about the square root of N steps.
Worked example: what a square root does to a key
- A 128-bit key has 2¹²⁸ possible values. The square root is 2⁶⁴. On paper, that halves the key's strength in bits.
- A 256-bit key has 2²⁵⁶ values. The square root is 2¹²⁸, still far beyond any imaginable search.
In practice the attack is much weaker than "on paper". Grover's steps must run one after another, and splitting the work over many machines helps far less than it does for normal searches. NIST's view is that Grover's algorithm will likely give little or no advantage in attacking AES, and that AES-128 will remain secure for decades. Many organisations still choose AES-256 for data that must stay secret for a very long time, as a cheap extra margin.
Hash functions such as SHA-256 are in a similar position: weakened at most modestly, not broken.
Check yourself
- What kind of speed-up does Grover's algorithm give?
Answer
A square-root speed-up on searching: about √N steps instead of about N.
- Does a quantum computer break AES-256?
Answer
No. Even on paper the search drops only to about 2¹²⁸ steps, which is out of reach.
- Which is in more danger from quantum computers: AES or RSA?
Answer
RSA, which Shor's algorithm breaks completely. AES is at most modestly weakened.
Lesson 4: NIST's post-quantum standards
"Post-quantum" cryptography means new public-key methods, run on ordinary computers, built on maths problems that no known quantum algorithm solves efficiently. The US National Institute of Standards and Technology (NIST) ran an open competition from 2016, and on 13 August 2024 it published the first three standards:
- FIPS 203, ML-KEM (Module-Lattice-Based Key-Encapsulation Mechanism), from the CRYSTALS-Kyber submission. It replaces RSA and elliptic-curve key exchange for agreeing shared secrets. Based on lattice maths.
- FIPS 204, ML-DSA (Module-Lattice-Based Digital Signature Algorithm), from CRYSTALS-Dilithium. The main general-purpose signature standard.
- FIPS 205, SLH-DSA (Stateless Hash-Based Digital Signature Algorithm), from SPHINCS+. Its security rests only on hash functions, a different kind of maths from the lattices, so it is a backup if lattices turn out weaker than thought. The price is larger, slower signatures.
NIST is also developing a signature standard derived from FALCON (called FN-DSA), and in March 2025 it chose HQC, based on error-correcting codes, as a backup to ML-KEM.
Worked example: the cost is size
| Method | Public key | Ciphertext or signature |
|---|---|---|
| X25519 (elliptic curve, today) | 32 | 32 (the other side's public key) |
| ML-KEM-768 | 1,184 | 1,088 |
| Ed25519 signature (today) | 32 | 64 |
| ML-DSA-65 signature | 1,952 | 3,309 |
| SLH-DSA-SHA2-128s signature | 32 | 7,856 |
The new methods are fast, but their keys and signatures are tens to hundreds of times larger. For a web page this adds a few kilobytes, which is usually fine; for tiny devices and radio links it needs care.
Check yourself
- Which standard would you use to agree a shared key, and which for signatures?
Answer
ML-KEM (FIPS 203) for agreeing keys; ML-DSA (FIPS 204) or SLH-DSA (FIPS 205) for signatures.
- Why does NIST have a hash-based signature standard as well as a lattice one?
Answer
So there is a backup built on different maths in case a weakness is found in lattice methods.
- What is the main practical cost of the new methods?
Answer
Much larger keys, ciphertexts and signatures than RSA or elliptic curves.
Lesson 5: Hybrid key exchange
The new methods are well studied but young. The old ones are trusted against ordinary computers but will fall to a future quantum computer. Hybrid key exchange runs both at once and combines their results, so an attacker has to break both.
Worked example: X25519 plus ML-KEM-768
- Your browser sends an X25519 public key (32 bytes) and an ML-KEM-768 public key (1,184 bytes) to the server.
- The server answers with its own X25519 public key and an ML-KEM ciphertext (1,088 bytes).
- Each side now has two shared secrets, one from each method. Both are fed together into a key-derivation function to make the session keys.
- If ML-KEM had a hidden flaw, X25519 still protects the session today. If a quantum computer later breaks X25519, ML-KEM still protects it.
This is already in everyday use: Google Chrome made this hybrid (named X25519MLKEM768) its default for secure connections from version 131 in late 2024, and other major browsers and networks such as Cloudflare support it.
Check yourself
- What must an attacker break to read a hybrid-protected session?
Answer
Both methods: the classical one (such as X25519) and the post-quantum one (ML-KEM).
- Why not just switch straight to ML-KEM alone?
Answer
It is newer, so a hybrid keeps the proven classical protection as a safety net while confidence in the new method grows.
Lesson 6: Harvest now, decrypt later, and planning the move
An attacker does not need a quantum computer today to cause harm later. They can record encrypted traffic or copy encrypted files now and keep them until a quantum computer can break the key exchange. NIST calls this "harvest now, decrypt later". Anything that must stay secret for many years, such as medical records, designs or state secrets, is at risk now if its keys were agreed with RSA or elliptic curves.
Worked example: is my data at risk?
A simple rule of thumb often used in security planning: add how many years the data must stay secret to how many years it will take you to switch to post-quantum methods. If the total reaches past the time a quantum computer might appear, you should start now.
- Data that must stay secret 10 years, plus 5 years to migrate = 15 years. Since NIST says estimates for a large quantum computer range from a few years to a few decades, this is already a risk.
Planning the move
- Make an inventory: find where RSA and elliptic curves are used (connections, stored keys, signed software).
- Protect long-lived secrets first, for example with hybrid key exchange.
- Build in "crypto-agility": design systems so algorithms can be swapped without rebuilding everything.
- Follow the timeline. NIST's transition report (NIST IR 8547, "Transition to Post-Quantum Cryptography Standards") sets 2035 as the point after which quantum-vulnerable methods such as RSA and elliptic curves are no longer allowed, with deprecation beginning after 2030. Check the final report for the exact rules.
Check yourself
- What does "harvest now, decrypt later" mean?
Answer
Collecting encrypted data today and storing it, to decrypt it once a powerful enough quantum computer exists.
- Which data is most at risk from it?
Answer
Data that must stay secret for many years and whose keys were agreed with RSA or elliptic-curve methods.
- What is crypto-agility, and why does it help?
Answer
Designing systems so cryptographic algorithms can be replaced easily. It makes this migration, and any future one, faster and cheaper.
Where This Leads
Rozzom's concept for protecting stored data uses these ideas: AES on your device, keys protected with ML-KEM combined with a conventional method, and post-quantum signatures. Read about it on the Quantum-Safe Storage page.
Sources
- NIST CSRC, Post-Quantum Cryptography FIPS Approved (13 August 2024).
- NIST, FIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) (key, ciphertext and signature sizes).
- NIST, What Is Post-Quantum Cryptography? (harvest now, decrypt later; timing estimates).
- NIST CSRC, Post-Quantum Cryptography FAQs (Grover's algorithm and AES).
- NIST, NIST Selects HQC as Fifth Algorithm for Post-Quantum Encryption (March 2025).
- NIST CSRC, NIST IR 8547, Transition to Post-Quantum Cryptography Standards.
- Google Security Blog, A new path for Kyber on the web (Chrome 131 moves to ML-KEM), and Cloudflare, Post-quantum support.
- RFC 7748, Elliptic Curves for Security (X25519 key size), and RFC 8032, EdDSA (Ed25519 sizes).
This course was written on 20 November 2026 and has not yet been reviewed by an outside expert. Standards and deadlines in this field are still changing; check NIST for the current position. If you spot a mistake, please tell us on the Comments page.