Quantum computers that can break today's encryption do not exist yet, but most of your HTTPS traffic is already protected against them. This article explains why the web did not wait, how the new algorithms work, and what you need to change in your own systems.
Every HTTPS connection starts with a key exchange: browser and server agree on a secret over a network anyone can listen to. For more than twenty years that exchange has relied on two mathematical problems, factoring large numbers (RSA) and the discrete logarithm on elliptic curves (ECDH, ECDSA). Both are hard for normal computers. Both are easy for a large enough quantum computer.
Nobody has built that computer yet. And still, since 2024, Chrome, Firefox, Safari, OpenSSH and large CDNs such as Cloudflare have changed how they exchange keys. By spring 2026, Cloudflare reported that more than two thirds of the human traffic reaching its network was already post-quantum encrypted. Most users did not notice a thing.
The sections below cover why the change happened so early, what "post-quantum" actually means, how the new standards ML-KEM and ML-DSA work, why certificates are the hard part, and what to do in your own servers and applications. The article builds on How HTTPS Really Works, which explains key exchange, signatures and certificates, and on Exploring the Promise and Potential of Quantum Computing, which explains qubits.
1. The Threat
In 1994, Peter Shor showed that a quantum computer could factor large numbers and compute discrete logarithms efficiently. That breaks all public-key cryptography in wide use today: RSA, Diffie-Hellman, ECDH and ECDSA, and with them the key exchange of TLS, SSH and VPNs, and the signatures in certificates, software updates and passkeys.
What a quantum computer does not break is symmetric cryptography. Grover's algorithm speeds up brute-force search, but only by a square root. AES-256 stays secure, and hashes such as SHA-256 stay usable. The problem is limited to public-key cryptography, but that is exactly the part that lets two strangers on the internet trust each other.
| Building block | Used for | Quantum impact |
|---|---|---|
| RSA, ECDSA, Ed25519 | Signatures, certificates | Broken by Shor's algorithm |
| ECDH, X25519, Diffie-Hellman | Key exchange | Broken by Shor's algorithm |
| AES-128 | Bulk encryption | Weakened by Grover; still practical, AES-256 preferred for long-term data |
| AES-256, ChaCha20 | Bulk encryption | Secure |
| SHA-256, SHA-3 | Hashes | Secure |
2. How Far Away Is the Quantum Computer?
Nobody knows the date, but the estimates have moved closer, fast.
| Year | Estimate to break RSA-2048 |
|---|---|
| 2012 | About a billion physical qubits |
| 2019 | 20 million noisy qubits, about 8 hours (Gidney and Ekerå) |
| May 2025 | Fewer than one million noisy qubits, under a week (Gidney, Google Quantum AI) |
Elliptic curves are an even easier target than RSA, because the keys are much shorter. A paper at EUROCRYPT 2026 by Chevignard, Fouque and Schrottenloher estimates that a 256-bit curve such as P-256 needs about 1,200 logical (error-corrected) qubits. In March 2026, Google Quantum AI published a similar estimate for the curve used by Bitcoin.
Today's best machines with low enough error rates have a few hundred to about a thousand physical qubits, and each logical qubit needs many physical ones for error correction. So the gap is still large. But each year the required machine gets smaller while real machines get bigger, and the two lines are moving towards each other.
The official deadlines reflect this. NIST plans to deprecate RSA and elliptic-curve cryptography at today's security levels after 2030 and to disallow it after 2035. The EU's coordinated roadmap asks member states to start the migration by the end of 2026 and to protect high-risk systems by 2030. Cloudflare has set itself a target of 2029 for full post-quantum security.
3. Why the Web Did Not Wait: Harvest Now, Decrypt Later
If the quantum computer is years away, why change the keys today? Because of one simple attack:
2026: attacker records encrypted traffic → cannot read it, stores it
2026+: storage is cheap, recording continues
20XX: quantum computer becomes available → breaks the recorded key exchanges
→ decrypts the stored traffic
This is called "harvest now, decrypt later". Intelligence agencies and other well-funded attackers can record traffic today and read it in ten or fifteen years. For a weather forecast that does not matter. For health records, legal documents, trade secrets, government communication or private messages, it matters a lot.
Michele Mosca put it into a simple inequality:
x = how many years your data must stay secret
y = how many years your migration takes
z = how many years until a cryptographically relevant quantum computer exists
if x + y > z → you are already too late
Large migrations take years (the IPv6 article shows how long "a few years" can become). That is why the key exchange had to change first: it is what protects recorded traffic. Signatures are less urgent, because a forged signature only helps an attacker at the moment of the connection, not years later.
4. The New Algorithms
In 2016, NIST started an open competition for post-quantum algorithms. Teams from around the world submitted 82 candidates. Over eight years, cryptographers attacked them; some fell, a few dramatically (the SIKE scheme was broken in 2022 on a single ordinary computer in about an hour). In August 2024, NIST published the first three standards:
| Standard | Name | Job | Based on |
|---|---|---|---|
| FIPS 203 | ML-KEM (formerly Kyber) | Key exchange | Lattices (Module Learning With Errors) |
| FIPS 204 | ML-DSA (formerly Dilithium) | Signatures | Lattices |
| FIPS 205 | SLH-DSA (formerly SPHINCS+) | Signatures | Hash functions only |
Two more are on the way: FN-DSA (formerly Falcon), a lattice signature with smaller signatures, and HQC, a second key exchange chosen in March 2025 as a backup based on different mathematics, in case lattices ever turn out weaker than expected.
The idea behind lattices
A lattice is a regular grid of points in many dimensions. ML-KEM hides a secret inside a system of linear equations to which a small amount of random noise has been added:
Without noise: A · s = b → easy: solve the equations, get the secret s
With noise: A · s + e = b → hard: the small errors e hide s
With several hundred dimensions, finding the secret from the noisy equations is believed to be hard for normal and quantum computers alike. This is the Learning With Errors problem. It has been studied since 2005 and has held up well. Unlike RSA, there is no known quantum shortcut.
KEM instead of Diffie-Hellman
ML-KEM is a key encapsulation mechanism. It works a little differently from Diffie-Hellman, but fits into the same place in TLS:
1. Client creates a key pair, sends the public key (encapsulation key)
2. Server picks a random secret, locks it with that key, (ciphertext)
sends the locked box back
3. Client opens the box with its private key → both share the same secret
The result is the same as before: a shared secret that only the two endpoints know.
The price: size
The new algorithms are fast, often faster than RSA. Their cost is size:
| Algorithm | Public key | Ciphertext or signature |
|---|---|---|
| X25519 (today's key exchange) | 32 bytes | 32 bytes |
| ML-KEM-768 | 1,184 bytes | 1,088 bytes |
| ECDSA P-256 (today's signature) | 64 bytes | 64 bytes |
| RSA-2048 | 256 bytes | 256 bytes |
| ML-DSA-44 | 1,312 bytes | 2,420 bytes |
| SLH-DSA-128s | 32 bytes | 7,856 bytes |
For key exchange this is manageable: about 2 KB more per new connection. For certificates, where a handshake carries several signatures and keys, it becomes a real problem (section 7).
5. Hybrid: Old and New Together
The new algorithms are young. RSA and elliptic curves have been attacked by researchers for decades; lattice schemes have had far less time. So the industry chose a hybrid approach: combine a classical and a post-quantum key exchange, and derive the session key from both.
shared secret = KDF( X25519 secret ‖ ML-KEM-768 secret )
An attacker has to break both to read the traffic. If ML-KEM has a hidden flaw, X25519 still protects you today. If a quantum computer appears, ML-KEM still protects you. In terms of security, you lose nothing compared to the old setup; you only send a few more bytes.
In TLS 1.3, this hybrid is a single "group" called X25519MLKEM768. It is the one you will see everywhere.
6. How HTTPS Changed, Quietly
TLS 1.3 was designed so that new key-exchange groups can be added without changing the protocol. That made the rollout almost invisible:
| When | What |
|---|---|
| 2016 | Google tests a post-quantum key exchange (CECPQ1) in Chrome Canary |
| 2019 | Google and Cloudflare run a larger experiment (CECPQ2) |
| Apr 2022 | OpenSSH 9.0 makes a hybrid post-quantum key exchange the default for SSH |
| Sep 2023 | Signal adds post-quantum key agreement (PQXDH) |
| 2024 | Chrome turns on hybrid Kyber by default; Apple's iMessage moves to PQ3 |
| Aug 2024 | NIST publishes FIPS 203, 204 and 205 |
| Late 2024 | Chrome switches to the final standard X25519MLKEM768; Firefox adds it too |
| 2025 | OpenSSL 3.5, Go 1.24 and OpenSSH 10 enable ML-KEM by default; Apple adds it to iOS 26 and macOS 26 |
| Dec 2025 | Post-quantum share of human traffic at Cloudflare: 52% (29% at the start of the year) |
| Apr 2026 | Over 65% of human traffic to Cloudflare is post-quantum encrypted |
The handshake itself barely changes. The browser simply offers one more key share:
ClientHello
supported_groups: X25519MLKEM768, X25519, secp256r1
key_share: X25519MLKEM768 (1,216 bytes), X25519 (32 bytes)
ServerHello
key_share: X25519MLKEM768 (1,120 bytes) ← server picked the hybrid
If the server does not know the new group, it picks X25519 as before. Normally nothing breaks, and nothing needs a new certificate. That is why post-quantum key exchange could go from experiment to majority in about two years.
The one surprise: bigger packets
There was one real problem. The ClientHello used to fit easily into a single network packet. With an extra 1.2 KB of ML-KEM key, it no longer does. Some old firewalls, load balancers and server implementations could not handle a ClientHello split across two TCP packets, and connections failed. Browsers delayed their rollouts, vendors shipped fixes, and today it is rare, but it is the first thing to check when a client with post-quantum TLS cannot connect.
For latency, the effect is small: about two kilobytes more in the first exchange, but no extra round trips. The latency article explains why round trips, not bytes, decide how fast a connection feels.
7. The Hard Part: Certificates
Key exchange protects your data from future decryption. Certificates prove that you are talking to the real server. They also use RSA or ECDSA, so they need to change too, but they are much harder to replace.
A typical HTTPS handshake today carries five signatures and two public keys: the server's signature over the handshake, the server's public key, the signature on the server's certificate, the intermediate certificate's public key and signature, and usually two Certificate Transparency signatures. With ECDSA and RSA that is about 1.2 KB. With ML-DSA-44 in every place it would be almost 15 KB.
That matters because a new TCP connection can only send about 14 KB before it has to wait for the first acknowledgement. Almost 15 KB of signatures and keys means an extra round trip on every new connection, for every website, forever.
So the web is looking for smarter designs. The leading one is Merkle Tree Certificates (MTC):
- A certificate authority collects many certificates into a Merkle tree, a structure of hashes where one root hash vouches for millions of entries.
- The authority signs only the tree, once.
- A server sends its certificate with a short inclusion proof: a few hashes that show "my certificate is in this signed tree".
- Browsers receive the signed tree roots in advance.
The certificate part of the handshake then shrinks to roughly 700 bytes, smaller than today, while being quantum-safe. It also merges certificates with Certificate Transparency, which today is a separate system.
Where things stand in late 2026:
- Google said in February 2026 that Chrome will not put post-quantum signatures into traditional X.509 certificates for the public web, and will use Merkle Tree Certificates instead. It is testing them with Cloudflare and plans a separate quantum-resistant root store for Chrome in 2027.
- Let's Encrypt announced in June 2026 that MTC is its post-quantum path, with a staging environment planned for late 2026 and production in 2027.
- The IETF is standardising MTC in its PLANTS working group; the specification is still a draft.
This part of the migration is just starting. For your own public website you can do nothing about it yet, except keep your certificate automation (ACME) healthy, so that switching certificate types later is a configuration change, not a project.
8. Beyond the Browser
HTTPS is the most visible place, but public-key cryptography is everywhere:
| Area | Status in 2026 |
|---|---|
| SSH | OpenSSH uses a hybrid post-quantum key exchange by default (since 9.0, ML-KEM since 10.0) |
| Messaging | Signal and iMessage use post-quantum key agreement |
| VPNs | IPsec and WireGuard-based products are adding hybrid key exchange; see the VPN article |
| CDNs and edge | Large CDNs offer post-quantum TLS to visitors by default; the connection to your origin often is not yet (see the CDN article) |
| Code signing, firmware | Hash-based signatures (LMS, XMSS, SLH-DSA) are recommended for long-lived devices |
| Passkeys, WebAuthn | Still ECDSA and RSA; post-quantum algorithms are in discussion. A forged login needs a quantum computer at login time, so this is less urgent than key exchange |
| Internal APIs, databases, message brokers | Depends entirely on your TLS libraries and configuration |
The last row is where most companies are. The public edge is often modern; the connections behind it, between services, to databases, to partners and to old Java runtimes, are not.
9. What to Do in Your Own Systems
Step 1: Check what you have
See what your own browser negotiates: open DevTools in Chrome, go to the Security panel and look at the connection details. A post-quantum connection shows X25519MLKEM768 as the key exchange.
From the command line, with OpenSSL 3.5 or newer:
openssl s_client -connect example.com:443 -groups X25519MLKEM768 </dev/null 2>/dev/null | grep -i "group"
If the server supports it, the output names X25519MLKEM768. If not, the handshake fails, because this command offers no other group.
Step 2: Turn it on at the edge
In most cases this is a library upgrade, not a code change:
-
Nginx and Apache with OpenSSL 3.5+: the hybrid group is in OpenSSL's default list. If you set the groups explicitly, put it first. In Nginx:
ssl_protocols TLSv1.3 TLSv1.2; ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1;In Apache:
SSLOpenSSLConfCmd Groups X25519MLKEM768:X25519:prime256v1 -
Caddy, Traefik and other Go servers: enabled by default since Go 1.24.
-
CDNs and cloud load balancers: usually on by default for visitors. Check whether the connection from the CDN or load balancer to your origin uses it too.
-
Java: JDK 24 added ML-KEM and ML-DSA to the standard library. Hybrid TLS support depends on your JDK version and provider, so check before you assume.
Post-quantum key exchange needs TLS 1.3. If parts of your system still speak TLS 1.2, that upgrade comes first, and it is worth doing anyway.
Step 3: Make an inventory
You cannot migrate what you do not know about. Build a cryptographic inventory:
- Where do you use TLS, SSH, VPNs, signed tokens (JWT), code signing, encrypted backups?
- Which library and version does each one use?
- Which data must stay confidential for more than ten years? That data, and the links that carry it, come first.
Step 4: Build for change
The most valuable property is crypto agility: the ability to swap algorithms by configuration, not by rewriting code.
- Do not hard-code algorithms or key sizes; read them from configuration.
- Keep libraries up to date and avoid writing cryptographic code yourself.
- Plan for bigger keys and signatures: database columns, HTTP header limits, JWT sizes and UDP packet sizes can all break.
- Automate certificates with ACME, so changing the certificate type later is routine.
Step 5: Watch the signatures
Signatures can follow later, but plan for them: internal PKIs can test ML-DSA certificates now, and long-lived devices that you cannot update should get quantum-safe firmware signatures before they ship.
10. Honest Limits
- Nobody knows when. It could be less than ten years, it could be much more. Post-quantum migration is insurance, not a reaction to an attack happening today.
- The new algorithms are young. Lattices look strong, but SIKE showed that a scheme can fall late. That is exactly why hybrids are used.
- Implementations can be the weak spot. Side-channel attacks on early ML-KEM implementations have already been published and fixed. Use mature libraries.
- Signatures and certificates are not solved yet for the public web. MTC is promising but not yet an RFC or in production.
- Recorded traffic from before the switch stays at risk. Data that was sent with classical key exchange and recorded is already harvested. Post-quantum protects from now on.
- Hype is everywhere. "Quantum-safe" products sometimes only mean that a vendor turned on a TLS setting. Ask which algorithms, where, and with which library.
11. Conclusion
Post-quantum cryptography is not a future project. For key exchange, it has already happened, and it happened quietly.
- The threat: Shor's algorithm breaks RSA and elliptic curves; symmetric encryption and hashes survive.
- The reason to hurry: "harvest now, decrypt later" makes today's recorded traffic tomorrow's open book.
- The new standards: ML-KEM for key exchange, ML-DSA and SLH-DSA for signatures, all published by NIST in 2024.
- The approach: hybrid
X25519MLKEM768, so an attacker must break both the old and the new algorithm. - The status: browsers, CDNs, OpenSSL, Go and OpenSSH use it by default; most human web traffic at Cloudflare is already post-quantum encrypted.
- The hard part: certificates, where Merkle Tree Certificates are the likely answer from 2027 on.
- For you: upgrade TLS libraries, enable the hybrid group, check the connections behind your edge, build an inventory, and design for crypto agility.
Open your browser's Security panel today and look at the key exchange of the site you use most. There is a good chance it already says X25519MLKEM768, and that your own servers do not yet. That gap is the work.
Sources and Further Reading
- NIST, FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard, August 2024: https://csrc.nist.gov/pubs/fips/203/final
- NIST, FIPS 204: Module-Lattice-Based Digital Signature Standard, August 2024: https://csrc.nist.gov/pubs/fips/204/final
- NIST, FIPS 205: Stateless Hash-Based Digital Signature Standard, August 2024: https://csrc.nist.gov/pubs/fips/205/final
- NIST IR 8547, Transition to Post-Quantum Cryptography Standards: https://csrc.nist.gov/pubs/ir/8547/ipd
- C. Gidney, "How to factor 2048 bit RSA integers with less than a million noisy qubits", 2025: https://arxiv.org/abs/2505.15917
- Google, "Tracking the Cost of Quantum Factoring", 2025: https://blog.google/security/tracking-cost-of-quantum-factori/
- C. Chevignard, P.-A. Fouque, A. Schrottenloher, "Reducing the Number of Qubits in Quantum Discrete Logarithms on Elliptic Curves", EUROCRYPT 2026: https://eprint.iacr.org/2026/280
- Cloudflare, "State of the post-quantum Internet in 2025": https://blog.cloudflare.com/pq-2025
- Cloudflare, "Cloudflare targets 2029 for full post-quantum security", April 2026: https://blog.cloudflare.com/post-quantum-roadmap/
- Cloudflare, "Keeping the Internet fast and secure: introducing Merkle Tree Certificates": https://blog.cloudflare.com/bootstrap-mtc/
- Let's Encrypt, "A Post-Quantum Future for Let's Encrypt", June 2026: https://letsencrypt.org/2026/06/03/pq-certs
- IETF draft, Merkle Tree Certificates: https://datatracker.ietf.org/doc/draft-ietf-plants-merkle-tree-certs/
- IETF draft, Hybrid key exchange in TLS 1.3: https://datatracker.ietf.org/doc/draft-ietf-tls-ecdhe-mlkem/
- Cloudflare Research, post-quantum test page: https://pq.cloudflareresearch.com/




