
Follow the Padlock: Where Quantum Breaks Your Connection, and When
A secure website connection rests on three jobs. A powerful enough quantum computer breaks two of them, and only one of those two is already at risk today.
In short
- A secure connection does three jobs: agree on a secret, prove who is on the other end, then encrypt the conversation. A quantum computer breaks the first two. The encryption survives, but its keys come from the first job, so the conversation can still be read.
- The first job is already at risk, because traffic recorded today can be decrypted later. Its fix is standardised and already in use.
- The second job is only at risk once such a computer exists, but its fix will take longer and has barely started.
In my last article, The 2,000-Year Arms Race , I traced 2,000 years of codes that were trusted until someone found a way to break them. I argued that the cryptography protecting today's internet faces the same risk, and that quantum computing is the likely next break. The natural next question is where exactly it breaks, and when.
Let's follow one connection from start to finish. You type your bank's web address into the address bar of your web browser and press Enter. The padlock icon appears to show that the connection is secure. Before the bank's web page loads, your web browser and the bank's server set up that connection through a short exchange of messages. The rules for that exchange come from Transport Layer Security (TLS), so it is called the TLS handshake. Its current version, TLS 1.3, is a standard published by the Internet Engineering Task Force (IETF) , the body that writes the internet's technical standards.
A secure connection has three jobs. Agree on a secret. Prove who is on the other end. Then encrypt the conversation. The handshake does the first two and produces the keys for the third. The TLS standard splits the same way. Its handshake protocol checks identities and establishes shared keys. Its record protocol then packages and encrypts everything sent after the handshake, using those keys.
Imagine sending valuables to your bank by post, knowing that postal workers can open and read any parcel that is not locked. First, you and the bank need a lock that only the two of you can open, and you have to set it up without ever meeting. Next, you need to be sure the parcel is going to your real bank, not to someone pretending to be it. After that, you send your valuables in boxes fitted with that lock.
The threat comes from a quantum computer powerful enough to break the public-key cryptography in use today. The US National Institute of Standards and Technology (NIST) calls this a cryptanalytically relevant quantum computer (CRQC) . None has been built yet. Even so, part of the risk has already begun, because encrypted data recorded today could be read once one exists, a threat known as harvest now, decrypt later (HNDL). A CRQC would affect each of these jobs differently, and that difference decides what needs fixing first.
A quick recap
This article builds on four ideas from the first one.
Public-key cryptography gives each party its own pair of keys, a private key kept secret by its owner and a public key that can be shared with anyone. Creating the public key from the private key is easy, while working out the private key from the public key is what NIST calls computationally infeasible. A phone book works the same way for lookups. Going from a name to its number takes seconds, while going back from the number to the name means reading the whole book.
A secret key is different. Both parties hold the same key, like two copies of a house key, and NIST calls the algorithms that use it symmetric-key algorithms .
Today's key pairs rely on one of two hard problems, factoring for RSA and the discrete logarithm for Diffie-Hellman and elliptic-curve cryptography. In 1994, Peter Shor showed that a large enough quantum computer could solve both, using what is now called Shor's algorithm.
Job one, agreeing on a secret
Your web browser and your bank have never met, yet they need a shared secret, a value that only the two of them know. Nobody watching the network should be able to learn it. Cryptographers call this the key-distribution problem. Until 1976, two parties had to share a secret key in advance, for example by private courier or registered mail . That year, Whitfield Diffie and Martin Hellman showed how two parties could agree on a secret by exchanging messages over a network that anyone can watch. TLS 1.3 still uses forms of their method.
- The browser and the server each create a new key pair for this connection and discard it afterwards.
- Each side keeps its private key and sends its public key across the network.
- Each side combines the public key it received with its own private key. Both arrive at the same result, and that result is their shared secret.
Someone watching the connection sees both public keys but never the private keys. To reach the shared secret, they would need to work out a private key from its public key, which means solving the discrete logarithm problem from the recap. TLS 1.3 offers two forms of Diffie-Hellman, and both rely on that problem . RSA plays no part in this step, because TLS 1.3 removed that option.
This step is the key exchange, which NIST more broadly calls key establishment . In the postal comparison, this is you and the bank agreeing on a lock that only the two of you can open. To set it up, you each post the other your public key in a parcel that is not locked, so postal workers can read both keys. To make the lock, each of you combines the key you received with your own private key. Neither of you ever posts your private key, so the workers cannot make the lock.
Job two, proving who is on the other end
A shared secret is only useful if you share it with the right party. Without an identity check, an attacker sitting between you and your bank could run a separate key exchange with each of you and read everything in between. The TLS standard calls this a man-in-the-middle attack, and it is why TLS always checks the server's identity.
For this job the server uses a second, long-term key pair, separate from the one it made for the key exchange. A certificate links the public key of that long-term pair to a name, such as your bank's web address. It is issued and signed by a certificate authority , a trusted organisation that vouches for that link. A certificate works like a passport, accepted because people trust the office that issued it.
During the handshake, the server also creates a digital signature over the handshake messages with its long-term private key. As NIST describes , a signature made with a private key can be checked by anyone who has the matching public key. Your web browser checks the server's signature using the public key in the certificate. In the passport comparison, this is the traveller's face matching the photo. The signature uses an algorithm such as RSA or the Elliptic Curve Digital Signature Algorithm (ECDSA). This step is authentication. In the postal comparison, this is making sure the parcel is going to your real bank.
Job three, the conversation itself
With the secret agreed and the server's identity checked, the conversation can begin. Three terms are easy to mix up here.
- The shared secret is the result of job one. TLS does not use it to lock data directly.
- The traffic keys are made from the shared secret. Each side feeds it, together with the handshake messages so far, into a fixed calculation set out in the TLS 1.3 standard . Same inputs, same output, so both end up with identical traffic keys. These are the secret keys from the recap.
- The Advanced Encryption Standard (AES) is a NIST symmetric-key algorithm that uses the traffic keys to lock and unlock the data. TLS 1.3 requires every implementation to support it.
In lock terms, AES is the design of the lock and the traffic keys are the keys that fit it. A locksmith cuts a key from a blank, a plain uncut key, by following a cutting pattern. Here, the shared secret is a unique blank that only your browser and the bank's server hold, and the fixed calculation in the TLS standard is the cutting pattern. Both start with the same blank and follow the same pattern, so they cut identical keys. Everything that follows, from your account balance to your password, travels encrypted under the traffic keys. In the postal comparison, this is your valuables travelling in boxes fitted with that lock.
Then the bank's web page loads.
Where a CRQC gets in
NIST states that RSA, ECDSA, and the Diffie-Hellman and elliptic-curve key exchanges are all vulnerable to Shor's algorithm on a CRQC. NIST calls algorithms like these quantum-vulnerable, and their replacements quantum-resistant. Shor's algorithm works like a locksmith's tool built for two lock designs, those based on factoring and those based on the discrete logarithm.
Job one falls, because the key exchange rests on the discrete logarithm.
Job two falls, because RSA signatures rest on factoring and ECDSA signatures rest on the discrete logarithm.
The lock used in job three holds. A quantum computer can use Grover's algorithm to try AES keys faster, but nowhere near fast enough. The IETF and NIST both state that AES with keys of 128 bits or more remains secure, and TLS 1.3's mandatory cipher suite uses 128-bit keys.
There is one catch. AES holds, but the traffic keys that open it come from job one. The cutting pattern is public, written out in the TLS standard. The first handshake messages , which carry the two public keys, are sent unencrypted, and a recording keeps a copy of every message. That leaves the unique blank, the shared secret, as the only missing piece. An attacker who works it out can follow the same pattern as your web browser, cut identical traffic keys, and read the conversation without ever breaking AES. AWS points to this risk. The conversation is only as safe as the key exchange that produced its keys.

Two clocks
The two broken steps start putting you at risk at different moments, so I think of them as two clocks. Each clock starts ticking when its step becomes a risk. NIST draws the same line when it notes that authentication may move to post-quantum cryptography (PQC) at a different time from the key exchange.
Clock one is already running
For the key exchange, the clock is already ticking, because traffic recorded today can be read once a CRQC exists. Suppose someone records your connection today, the handshake and the encrypted conversation. They cannot read it yet, so they store it, like locked boxes kept in a warehouse until a tool that opens them exists. Once they have a CRQC, they use Shor's algorithm to work out a private key from a recorded public key. From there they calculate the shared secret, then the traffic keys, and read what was said. This is HNDL.
You may have heard that TLS 1.3 has forward secrecy and wonder why it does not help here. Forward secrecy protects past conversations if the server's long-term key is stolen later. A CRQC does not need that key. It works out each fresh private key directly from the recorded public key, so forward secrecy does not change this.
How urgent is this for a given piece of data? NIST uses a rule known as Mosca's theorem , built on three numbers.
- X is how many years the data must stay secret, its shelf life.
- Y is how many years the move to PQC will take.
- Z is how many years until a CRQC is built.
If X plus Y is larger than Z, some data will still need to be secret after a CRQC exists, so the move needs to start early. NIST notes that going from a new cryptographic standard to full use in information systems has historically taken 10 to 20 years.
Nobody knows Z for certain. In October 2026, the US Government Accountability Office (GAO) reported that experts believe a CRQC could be developed as soon as the 2030s. Germany's Federal Office for Information Security (BSI) gives a conservative estimate of 2040, and warns that a breakthrough in quantum error correction could bring that forward to 2035.
Here is an example. Suppose a medical record must stay secret for 10 years (X), and an organisation needs 5 years to migrate (Y), starting in 2026. A record sent on the last day of the move, in 2031, must stay secret until 2041, so X plus Y is 15 years. The BSI's conservative date puts Z at 14 years (2040 minus 2026). Because 15 is larger than 14, anyone who recorded that connection could read the record while it still needs to be secret. An earlier CRQC, which GAO says is possible, exposes it for longer.
Clock two starts later
For authentication, the clock only starts ticking once a CRQC exists. NIST explains that authentication stays secure as long as its algorithms and keys are secure at the moment it happens. Once a CRQC exists, an attacker could forge a signature, but only to fool a connection happening at that time. They cannot go back and impersonate your bank in a past connection, just as a forged passport cannot be used to cross a border yesterday. For this reason, NIST notes that signatures are not vulnerable to HNDL.
That is not a reason to wait. NIST says moving to post-quantum signatures is also urgent, because it takes longer, is more complex, and needs more parties to coordinate.
The order of the work follows the two clocks. Protect the key exchange first, because its clock is already ticking, and start on authentication early, because it takes longer. AWS has set out the same order , moving the key exchange on its public endpoints first and certificate-based authentication last.
NIST's transition report also sets a timeline: quantum-vulnerable public-key algorithms are deprecated after 2030, meaning still usable but at some risk, and disallowed after 2035. The US government has set earlier deadlines for its most sensitive federal systems in a June 2026 Executive Order : PQC for key establishment by the end of 2030, and for signatures by the end of 2031. That one-year gap follows the same two clocks. The Australian Signals Directorate (ASD) recommends finishing the move by the end of 2030.
What the fix looks like
The algorithms for both fixes are standardised. In August 2024, NIST approved three Federal Information Processing Standards (FIPS) . FIPS 203 specifies the Module-Lattice-Based Key-Encapsulation Mechanism (ML-KEM) , a quantum-resistant way for two sides to agree on a shared secret. In the locksmith comparison, it is a new lock design that Shor's tool was not built for. FIPS 204 and FIPS 205 provide the fix for clock two. They specify two quantum-resistant signature algorithms, the Module-Lattice-Based Digital Signature Algorithm (ML-DSA) and the Stateless Hash-Based Digital Signature Algorithm (SLH-DSA).
During the move, a connection can run today's method and ML-KEM side by side and combine the results. This is called hybrid key exchange, like fitting a second, different lock to the same door. NIST and the IETF describe it as secure while either method holds, and the IETF has standardised the combinations browsers and servers use in RFC 10024 . A recorded hybrid handshake therefore stays safe from a CRQC as long as ML-KEM holds.
On AWS, the fix for clock one is live. AWS added hybrid key exchange with ML-KEM to AWS Key Management Service (AWS KMS), AWS Certificate Manager (ACM) and AWS Secrets Manager in April 2025 . AWS's post-quantum readiness page lists the AWS services that support it today. In AWS's tests , the performance cost of hybrid post-quantum TLS was too small to notice in normal use, and a few percent even in the worst case.
AWS treats this as a shared responsibility, so customers have two tasks. First, update the software that connects to AWS to a version that offers ML-KEM. That means the AWS Command Line Interface (CLI), the AWS software development kits (SDKs) and the encryption library beneath them, at the versions AWS lists . Second, for resources AWS manages, such as load balancers, choose a newer security policy. For an Application Load Balancer, AWS recommends a post-quantum policy .
The fix for clock two is further behind. Website certificates follow rules set by the CA/Browser Forum, the industry body of certificate authorities and web browser makers. Its current rules , dated 4 October 2026, still allow only RSA and ECDSA keys in publicly trusted website certificates.
Beyond the website connection
The website connection is one use case among several. NIST's transition report lists others that rely on the same quantum-vulnerable public-key cryptography, including code signing for software updates, sign-in for people and devices, and email.
Operational technology (OT), the systems that run factories, power grids and other industrial sites, relies on it too. The US Cybersecurity and Infrastructure Security Agency (CISA) reports that OT uses public-key cryptography to check software and firmware updates, and to protect the remote connections that link distributed sites. CISA warns that OT may be among the last systems to migrate, because of long patching cycles, slow hardware replacement and strict procedures.
Each use case also rests on layers of technology that must be updated first. It is like a country switching to a new type of power plug, where the sockets and wiring must change before appliances can use the new plug. NIST's report names these layers as protocol standards, software cryptographic libraries, cryptographic hardware, public key infrastructure (PKI), and applications and services. Hardware takes years to design and build, so NIST calls it a high priority for vendors to start now.
What to ask your team
The two clocks turn into five questions a security leader can put to their team:
- Where does our long-lived sensitive data cross a TLS connection today? That is where clock one is already running. Customer records, health data, contracts and intellectual property are the usual answers.
- What are our X and Y? How many years must that data stay secret, and how long will our migration take? If the two together reach past the early 2030s, the key-exchange work needs to start now.
- Do our AWS SDKs, CLI and load balancers negotiate hybrid ML-KEM? Updated SDK and CLI versions and the recommended Application Load Balancer policy give you clock one's fix at almost no cost. If a connection reaches a public AWS endpoint, this is the quickest win.
- Who owns our certificate and PKI inventory, and when does the clock-two planning start? Certificates cannot move to post-quantum signatures yet, but the inventory, the vendors and the dependencies take years, and NIST says that work is also urgent.
- What is our target date, and is it on or before the end of 2030? That is the date ASD recommends, and it aligns with the deadline the US government has set for its most sensitive systems.
Back to the padlock
The padlock icon stands for a secure connection, and that security rests on two promises that a CRQC threatens. The first is that the conversation is private, which depends on the key exchange in job one. The second is that you are talking to your real bank, which depends on authentication in job two. The key exchange is already at risk from anyone recording traffic today, and its fix is ready to use. Authentication has more time, but its fix takes longer to roll out, and that work has only just begun.
Knowing which promise sits on which clock tells you where to start.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article