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

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 about 30 min

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

  1. 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.
  2. The website proves it is genuine with a digital signature on its certificate.
  3. 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

  1. 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.

  2. 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 about 30 min

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

Effect of a large quantum computer running Shor's algorithm
Used forTodayEffect
Agreeing keysRSA, elliptic-curve Diffie-HellmanBroken
SignaturesRSA, ECDSA, Ed25519Broken
Bulk encryptionAESNot affected by Shor's algorithm (see lesson 3)

Check yourself

  1. Which hard maths problems does Shor's algorithm solve?
    Answer

    Factoring large numbers (behind RSA) and discrete logarithms (behind elliptic-curve cryptography).

  2. 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.

  3. 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 about 30 min

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

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

  1. 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.

  2. 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.

  3. 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 about 35 min

"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:

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

Sizes in bytes (from the standards; old methods for comparison)
MethodPublic keyCiphertext or signature
X25519 (elliptic curve, today)3232 (the other side's public key)
ML-KEM-7681,1841,088
Ed25519 signature (today)3264
ML-DSA-65 signature1,9523,309
SLH-DSA-SHA2-128s signature327,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

  1. 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.

  2. 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.

  3. 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 about 30 min

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

  1. Your browser sends an X25519 public key (32 bytes) and an ML-KEM-768 public key (1,184 bytes) to the server.
  2. The server answers with its own X25519 public key and an ML-KEM ciphertext (1,088 bytes).
  3. 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.
  4. 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

  1. 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).

  2. 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 about 30 min

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.

Planning the move

  1. Make an inventory: find where RSA and elliptic curves are used (connections, stored keys, signed software).
  2. Protect long-lived secrets first, for example with hybrid key exchange.
  3. Build in "crypto-agility": design systems so algorithms can be swapped without rebuilding everything.
  4. 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

  1. 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.

  2. 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.

  3. 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

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.