Post-Quantum Encryption, Explained: The Race to Change the Internet's Locks Before Anyone Can Pick Them
Quantum computers that can break today's encryption don't exist yet. So why is the world already replacing it?

Quick summary
Post-quantum cryptography runs on ordinary devices. It’s designed to protect against future quantum computers. The switch starts now because information captured today could still be sensitive when those computers arrive. Some browsers and messaging apps already combine the old and new protections.
The short version
- Today's internet relies on locks that a large quantum computer could pick. No one has built one big enough yet, but the estimated size needed keeps shrinking.
- Post-quantum encryption is a set of new locks built on different mathematics. It runs on ordinary phones and computers. No quantum computer is required.
- The switch has already begun. A large share of web traffic and some messaging apps already use it, often without users noticing.
- The reason for the rush is "harvest now, decrypt later": data recorded today could be unlocked years from now.
A message in a time capsule
Imagine someone is quietly copying your encrypted messages today. They can't read a single word, and they know that. So they store them and wait.
Ten years from now, they open the archive with a machine that didn't exist when you hit "send".
This is called harvest now, decrypt later, and it is the reason governments and technology companies are replacing the encryption that protects the internet before anyone can break it. The US National Security Agency (NSA) has warned that adversaries are already collecting encrypted data for exactly this purpose.
If your information only needs to stay secret until tomorrow, this doesn't matter much. But medical records, legal documents, trade secrets and personal identity data need to stay private for decades. For them, the clock is already running.
1. The locks we use today
Most digital security uses two kinds of locks working together.
Symmetric encryption, such as AES, uses one shared secret key to lock and unlock data. It is fast and strong, and it protects the actual content: your files, your messages, your password vault.
Public-key cryptography, such as RSA and elliptic curve cryptography, solves a trickier problem: how do two strangers agree on a secret key over a public network without anyone overhearing it? It also creates digital signatures, which prove that a website, a software update or a message really comes from who it claims to.
Here is the important part. Quantum computers threaten the second kind far more than the first. Strong symmetric encryption like AES-256 is expected to hold up well. Public-key cryptography is the weak point, and it is the part that sets up almost every secure connection you make.
2. Why quantum computers are a problem
Ordinary computers work with bits that are either 0 or 1. Quantum computers use qubits, which exploit quantum physics to explore certain kinds of problems in a completely different way.
They are not faster at everything. You won't be browsing the web or playing games on one. But for a few specific mathematical problems, they have an enormous advantage.
In 1994, the mathematician Peter Shor discovered one of those problems. Shor's algorithm lets a large enough quantum computer find hidden repeating patterns in numbers, a bit like picking out the rhythm of a song buried in static. Once you know the rhythm, the "hard" problems behind RSA and elliptic curve cryptography fall apart.
For years, the quantum computer needed to do this looked absurdly large. Then the estimates started falling:
| Year of estimate | Physical qubits needed to break RSA-2048 |
|---|---|
| 2012 | About 1 billion |
| 2019 | About 20 million (in around 8 hours) |
| 2025 | Fewer than 1 million (in under a week) |
That is a thousand-fold drop in thirteen years, and it came from cleverer algorithms and error correction, not from bigger machines. Today's quantum computers are still far smaller than even the latest estimate. But the gap is closing from both sides: machines are growing while the target shrinks.
The day a quantum computer can actually break today's public-key cryptography has a name: Q-Day. Nobody knows when it will come. Some experts think within a decade, some think much later, and a few doubt it will happen at all in the form people expect.
3. The equation that keeps security chiefs up at night
If nobody knows when Q-Day is coming, why act now? The answer is a simple piece of logic known as Mosca's inequality, after the quantum computing researcher Michele Mosca:
If X + Y > Z, you have a problem.
- X = how many years your data must stay secret
- Y = how many years it will take you to switch to new encryption
- Z = how many years until a quantum computer can break the old encryption
Take a hospital that must protect patient records for 25 years (X), and that needs 5 years to upgrade its systems (Y). That hospital needed to start yesterday, unless it is confident that Q-Day is more than 30 years away (Z).
Large organisations often take a decade or more to replace cryptography completely. That is why the world isn't waiting for Q-Day to arrive.
4. Meet the new locks
Post-quantum cryptography (PQC) is a family of new algorithms built on mathematical problems that are believed to be hard for both ordinary and quantum computers.
Despite the name, post-quantum cryptography has nothing quantum about it. It is just software, running on the same phones, laptops and servers you already own.
After a six-year international competition, followed by two more years of drafting and public review, the US National Institute of Standards and Technology (NIST) published the first three standards in August 2024:
| Standard | What it does | Built on | Original name |
|---|---|---|---|
| ML-KEM | Lets two devices agree on a secret key | Lattices | CRYSTALS-Kyber |
| ML-DSA | Creates digital signatures | Lattices | CRYSTALS-Dilithium |
| SLH-DSA | Creates digital signatures (a backup approach) | Hash functions | SPHINCS+ |
A fun detail: the original names were a nod to science fiction. Kyber crystals come from Star Wars and dilithium crystals from Star Trek. The family name CRYSTALS stands for "Cryptographic Suite for Algebraic Lattices".
What on earth is a lattice?
Picture a sheet of graph paper with a dot at every corner. That is a lattice in two dimensions. If someone puts a pin somewhere on the page and asks which dot is closest, you can answer in a second.
Now imagine that grid in hundreds of dimensions, with the dots arranged at strange angles. Finding the closest dot becomes a needle-in-a-haystack problem so vast that neither ordinary nor quantum computers have a known efficient way to solve it.
Modern lattice cryptography adds a twist called learning with errors. Think of a puzzle made of hundreds of simple equations, each with its answer smudged by a tiny bit of random noise. Without the noise, a schoolchild could solve them. With the noise, the problem becomes enormously harder, unless you hold the secret key that tells you how to clean it up.
The hash-based backup
SLH-DSA takes a different, deliberately conservative route. It is built only on hash functions, the mathematical "fingerprinting" tools that are already well understood and are not seriously threatened by quantum computers. If lattices ever turned out to have a fatal flaw, hash-based signatures would still stand.
The catch: the new keys are bigger
The new locks are strong, but they are bulkier:
| Traditional | Post-quantum | |
|---|---|---|
| Public key for agreeing a secret | 32 bytes (X25519) | 1,184 bytes (ML-KEM-768) |
| Digital signature | 64 bytes (Ed25519) | 3,309 bytes (ML-DSA-65) |
| Hash-based signature | n/a | About 7,800 to 17,000 bytes (SLH-DSA) |
On a fast connection you will never notice. But multiply those bytes by billions of connections a day, or squeeze them into tiny devices like smart cards and sensors, and the engineering challenge becomes real. This is one reason the transition takes years.
5. Plot twists: why nobody trusts a single lock
If post-quantum cryptography sounds like a neat, finished solution, its history suggests otherwise. Cryptography is tested in public, and some promising candidates have failed spectacularly.
The one-hour break. In 2022, an algorithm called SIKE had made it to the final rounds of NIST's competition. Then two researchers at KU Leuven in Belgium broke it in about an hour, using a single core of an ageing server processor. No quantum computer was involved, just a clever new piece of mathematics.
The weekend break. The same year, a researcher at IBM in Zurich showed that Rainbow, one of the finalist signature schemes, could be broken in about 53 hours on a standard laptop. His paper's title said it all: Breaking Rainbow Takes a Weekend on a Laptop.
The AI twist. In November 2026, Anthropic published research, developed with its AI models, describing a new theoretical quantum attack on the type of lattice mathematics behind ML-KEM and ML-DSA. Independent cryptographers called the cost of using it on real-world keys "galactic", and NIST says it remains confident in its standards. But it was a clear sign that AI is now helping to probe these algorithms faster than ever.
These stories are not a reason to panic. They are proof that the system works: algorithms are attacked in public before they protect your data, and the weak ones are thrown out. They are also why the experts build in spares:
- A different backup. In 2025, NIST selected a fifth algorithm, HQC, as a backup to ML-KEM, specifically because it relies on different mathematics. If lattices ever stumble, there is a spare tyre in the boot.
- More signature options. A further lattice-based signature standard, FN-DSA, is in the final stages of standardisation, and NIST is evaluating additional signature schemes built on other kinds of mathematics.
6. Belt and braces: hybrid encryption
So how do you switch to new locks you are not yet 100% sure about? You use both.
Most real-world deployments today are hybrid. They combine a traditional algorithm with a post-quantum one, so an attacker would have to break both to get in.
- If a quantum computer arrives, the post-quantum half keeps you safe.
- If someone finds a flaw in the new post-quantum algorithm, the traditional half still protects you against everyone without a quantum computer.
The logic is simple: an upgrade should never leave you less safe than before.
7. You are probably already using it
Here is the part that surprises most people: the switch has already started, mostly invisibly.
- The web: by late October 2025, Cloudflare, which carries a large share of the world's web traffic, reported that most human-initiated traffic through its network was protected with post-quantum encryption. That happened because browsers and websites quietly turned on hybrid key exchange.
- Messaging: Signal added post-quantum protection to the start of every conversation in 2023. In October 2025 it added a "Sparse Post-Quantum Ratchet" that keeps refreshing that protection throughout a conversation.
- Phones and computers: the latest versions of major operating systems and browsers have started switching on hybrid post-quantum encryption by default for many connections, including VPNs and remote logins.
If you keep your devices and apps updated, there is a good chance some of your connections are already post-quantum encrypted.
8. The deadlines are real
Governments have moved from "think about it" to "do it":
- European Union: member states agreed a roadmap in June 2025. All EU countries should begin the transition by the end of 2026. High-risk systems, such as critical infrastructure, should be protected no later than the end of 2030, and as many remaining systems as possible by 2035.
- United States: NIST's draft transition plan proposes deprecating quantum-vulnerable public-key algorithms after 2030 and disallowing them after 2035. In December 2026, NIST said a revised, more aggressive timeline is coming soon.
- Industry: in April 2026, citing recent advances in quantum hardware and software, Cloudflare brought forward its target for full post-quantum security to 2029.
9. Five myths about post-quantum encryption
Myth 1: "Post-quantum encryption needs a quantum computer." No. It is ordinary software that runs on ordinary devices. It is designed to resist quantum computers, not to use them.
Myth 2: "Quantum computers will break all encryption." No. They threaten today's public-key cryptography. Strong symmetric encryption such as AES-256, and well-designed hash functions, are expected to remain secure. Even the IETF's guide for engineers notes that experts consider AES-128 secure in practice against known quantum attacks.
Myth 3: "Post-quantum means unbreakable." No. It means "no known attack, including by quantum computers". As SIKE and Rainbow showed, new mathematics can still break new algorithms. That is why hybrid designs and backup standards exist.
Myth 4: "Quantum key distribution is the same thing." No. Quantum key distribution (QKD) uses physics, such as single particles of light, to share keys, and it needs special hardware and dedicated links. Post-quantum cryptography is software that works over the existing internet. Security agencies including the NSA and the UK's National Cyber Security Centre have advised against relying on QKD for their own systems, and they favour post-quantum cryptography.
Myth 5: "A quantum computer will crack my passwords." Quantum computers offer only a limited speed-up for guessing passwords. The real threats to your passwords today are the same as ever: phishing, reused passwords and data breaches.
10. What you can do
For most people, the move to post-quantum encryption will happen automatically. A few habits make sure you get it:
- Keep everything updated: your phone, computer, browser and apps. That is how post-quantum protection reaches you.
- Choose services that explain their security. Providers that publish clear information about their encryption and their post-quantum plans are easier to trust.
- Don't fall for "quantum upgrade" scams. No legitimate service will ask for your password, master password or recovery phrase to "upgrade your encryption".
- Keep the basics strong. Use unique passwords, a strong master passphrase and two-factor authentication. Quantum computers are a future risk. Phishing is a risk today.
If you run a business, start with an inventory: find out where your organisation uses public-key cryptography, ask your suppliers about their post-quantum plans, and make sure your systems can swap algorithms without a full rebuild. That last ability is called cryptographic agility, and this decade is going to test it.
Jargon buster
| Term | Plain-English meaning |
|---|---|
| Qubit | The basic unit of a quantum computer |
| Q-Day | The day a quantum computer can break today's public-key cryptography |
| Harvest now, decrypt later | Stealing encrypted data today to unlock it in the future |
| Post-quantum cryptography (PQC) | New algorithms designed to resist quantum computers, running on normal devices |
| Lattice | A grid of points in many dimensions. Finding your way around it is the hard problem behind ML-KEM and ML-DSA |
| KEM | Key encapsulation mechanism: a way for two devices to agree on a secret key |
| Hybrid encryption | Using a traditional and a post-quantum algorithm together, so both must be broken |
| Cryptographic agility | The ability to swap algorithms without rebuilding a whole system |
The locks are changing, and that's a good thing
Every generation of encryption has eventually been retired: old ciphers, short keys, outdated algorithms. What makes this transition unusual is that we are doing it before the threat arrives, not after a disaster.
That is good news. Researchers saw the problem coming three decades ago. The new standards have survived years of public attack. The upgrade is already running quietly on billions of devices.
The quantum future may be uncertain, but the response doesn't need to be dramatic. It needs to be steady: test the new locks, use them alongside the old ones, keep everything updated, and be ready to adapt.
Want to know what sparked this week's headlines? Read Has AI Broken Encryption? Understanding the Global Encryption Panic.
This article reflects publicly available information as of 4 December 2026. Post-quantum cryptography is a fast-moving field, and we will update this guide as standards and timelines evolve.
Sources13
- NIST: First three finalised post-quantum encryption standards (August 2024) (opens in a new tab)nist.gov
- NIST: HQC selected as fifth post-quantum algorithm (March 2025) (opens in a new tab)nist.gov
- NIST: Statement on implications of recent cryptographic research (3 December 2026) (opens in a new tab)nist.gov
- NSA: Immediate transition to post-quantum cryptography (2 December 2026) (opens in a new tab)nsa.gov
- European Commission: Coordinated implementation roadmap for the transition to post-quantum cryptography (June 2025) (opens in a new tab)digital-strategy.ec.europa.eu
- Gidney: How to factor 2048-bit RSA integers with less than a million noisy qubits (2025) (opens in a new tab)arxiv.org
- Cloudflare: State of the post-quantum internet in 2025 (opens in a new tab)blog.cloudflare.com
- Cloudflare: Targeting 2029 for full post-quantum security (April 2026) (opens in a new tab)blog.cloudflare.com
- Signal: Signal Protocol and post-quantum ratchets (October 2025) (opens in a new tab)signal.org
- Castryck and Decru: An efficient key recovery attack on SIDH (2022) (opens in a new tab)eprint.iacr.org
- Beullens: Breaking Rainbow takes a weekend on a laptop (2022) (opens in a new tab)eprint.iacr.org
- MIT Technology Review: Anthropic's cryptography breakthrough explained (1 December 2026) (opens in a new tab)technologyreview.com
- IETF RFC 9958: Post-Quantum Cryptography for Engineers (opens in a new tab)rfc-editor.org
