In March 2025, Britain’s National Cyber Security Centre announced a timetable for replacing some of the cryptography used to secure our digital infrastructure. Organisations should identify their vulnerable systems and prepare migration plans by 2028, protect their most critical systems by 2031, and aim to complete the transition by 2035.

The reason was quantum computing. A sufficiently powerful quantum computer could undermine some of the mathematical foundations used to secure online banking, protect private communications and verify digital identities. There was, however, one striking feature of the announcement: no quantum computer had ever demonstrated the ability to carry out such an attack, and nobody could say when one would.

The threat was hardly a new discovery. The underlying problem had been identified as long ago as 1994 by Peter Shor, a mathematician then working at AT&T Bell Laboratories. Yet in the intervening decades the threatened cryptographic systems had become fundamental to modern computing.

By the time the NCSC published its migration timetable, the United States had already standardised new algorithms designed to withstand quantum attacks, and technology companies were beginning to deploy them in browsers, messaging applications and internet services.

This might seem a surprisingly extensive response to a computer that can’t yet do any of the things we’re worried about. But the decision is less about predicting the arrival of quantum computing than about the difficulty of protecting information we currently have.

Harvest now, decrypt later

Consider an intelligence agency intercepting an encrypted communication between two foreign government officials. It can record the entire exchange, but it can’t necessarily read the contents. Rather than discard the data, it stores a copy.

The value of that copy depends partly on what the message contains. Just knowing about the existence of a communication between two parties can, in itself, be valuable. But the contents can have a shelf life. Information about a forthcoming meeting might be worthless a year later. The identity of a confidential intelligence source, on the other hand, might remain sensitive for decades.

Suppose the agency eventually acquires a quantum computer capable of defeating the cryptography used to establish the secure communications link. It may then be able to decrypt the messages it collected many years earlier.

Nothing about the communication itself has changed. The sender and recipient may have replaced their computers, updated their software and adopted much stronger security in the meantime. But the attacker still has the original recording of the network traffic, and a new capability with which to potentially decrypt it later.

This is the threat known as harvest now, decrypt later.

Imagine you want to send a confidential spreadsheet to someone. You might choose to set a password on an Excel file and email it to them (I wouldn’t, but we’re talking hypothetically). The recipient then uses the same password to open the spreadsheet on their own computer. This is a kind of symmetric encryption – the sender and the recipient both use the same password to both protect and open the file. How you agree on that password is important to the security of the file you’re sending. If I call you on the phone and we settle on something difficult to guess, that might be reasonable. If I send you the password in the body of the email I attached the spreadsheet to, I might as well not have bothered encrypting it in the first place.

Computers have a similar problem. You want to access a website securely, but your computer and the website’s server need to agree on a shared encryption key. If one computer simply sends a key to another and then starts using it, that’s no better than emailing our password along with the spreadsheet it’s meant to protect.

Public-key, or asymmetric cryptography, provides a solution to this problem. One method, known as Diffie–Hellman key exchange, allows the computer and the server to agree publicly on some numbers, while each chooses another number that it keeps secret. They each perform calculations using the public numbers and their own private number, share the results, and then use what they receive to perform further calculations. Thanks to the mathematics involved, they both arrive at exactly the same result.

But this doesn’t in itself provide the encryption for any of the data we want to exchange. For that, we switch to symmetric encryption using a shared key, which is much faster and less computationally intensive than public-key methods. The mathematical answer we jointly arrived at through Diffie–Hellman is used to derive the keys we need.

An eavesdropper might have seen the entire public conversation. The protection comes from the mathematics: knowing what was exchanged openly does not, by itself, provide a practical way for an ordinary computer to work out the secret.

That is where Shor comes in.

Shor’s algorithm showed that a sufficiently capable quantum computer could solve certain mathematical problems far more efficiently than conventional computers. Those problems underpin methods such as Diffie-Hellman, its elliptic-curve variants, and RSA.

For an attacker, the possibility is significant. An ordinary computer cannot feasibly recover the shared secret from a properly implemented Diffie–Hellman exchange, but a sufficiently powerful quantum computer could. The recovered secret could then be used to reconstruct the symmetric encryption keys protecting the rest of the conversation.

A quantum computer wouldn’t need to break a symmetric encryption algorithm, such as AES, if it had already obtained the key needed to unlock the data.

And the quantum computer would not have to exist when the message was sent. It would only have to exist while the intercepted information was still worth reading. For communications that need to remain confidential for many years, the danger can therefore begin before anyone possesses the machinery needed to exploit it.

This creates an unusual security problem. We may not know when a quantum attack will become practical, but we can often estimate how long the information we are protecting will remain sensitive. For some data, that period could extend well beyond the arrival of the first capable quantum computer.

From theory to working machine

Quantum computers do exist, but the machines built so far have not publicly demonstrated the ability to defeat modern public-key systems. One obstacle is the reliability of the calculations.

A traditional computer relies on its components being in one of two possible states. A transistor can be switched on or off; an area of an old hard drive can be magnetised in one direction or another; a fibre-optic cable can carry a pulse of light, or not. These are the binary options that make up a bit.

In a quantum computer, a qubit might be represented by a property of an individual electron or the state of a trapped ion. Unlike an ordinary bit, a qubit can occupy a much wider range of possible states. Measuring the voltage in a transistor to determine whether it’s on or off is relatively straightforward. But measuring a qubit is tricky.

Unlike a transistor, where we can check its state without changing the information it represents, measuring a qubit can change its quantum state in the process. Unwanted interactions with the environment can also disturb these states, while the operations used to perform calculations can introduce errors of their own. Even a small error rate becomes a serious problem when a calculation requires a very large number of successive operations.

Researchers address this through quantum error correction. Multiple physical qubits can be combined to form a smaller number of more reliable logical qubits. But maintaining those logical qubits and performing operations on them requires substantially more hardware.

A quantum computer may therefore contain many physical qubits but still not be capable of executing the long, reliable calculations needed to attack modern cryptography.

Researchers are making progress on both the hardware and the techniques used to perform these calculations. Theoretical estimates of the resources required to break RSA have fallen considerably as more efficient approaches have been developed. Yet these estimates describe what a machine might do under specified assumptions – they do not establish that the machine can presently be built.

Some researchers are sceptical about whether quantum computing will become capable of threatening real cryptographic systems. Others are more optimistic about the prospects for sufficiently powerful, fault-tolerant machines.

But while the timeline for the necessary quantum computer may be anywhere between decades and never, replacing the cryptography it threatens is already a process measured in years.

Replacing cryptography in the real world

There is no need to invent an entirely new kind of computer to defend against a quantum computer. The replacements being developed are mathematical algorithms that run on conventional hardware. Known collectively as post-quantum cryptography, they rely on problems for which researchers have not found efficient quantum attacks.

The US National Institute of Standards and Technology (NIST) began evaluating candidate algorithms in 2016, inviting researchers around the world to test and challenge their security. In August 2024, NIST finalised three standards: one for establishing secret keys and two for digital signatures, which allow computers to authenticate information rather than merely conceal it.

Developing the replacement mathematics was only part of the task. Incorporating it into systems that already serve billions of users has proved a different challenge.

Google and Cloudflare encountered exactly this challenge during experiments with post-quantum cryptography for secure internet connections. When a browser connects to a website, the two systems begin by exchanging information needed to establish a secure connection. The new cryptographic methods could require considerably larger messages during this initial conversation. That exposed a weakness in some of the existing software and networking equipment.

Information sent over the internet is normally split into manageable pieces, known as packets. Internationally agreed protocols specify how computers and networks communicate, and allow messages to be carried in this way. But in some network devices and software, those protocols were implemented with a narrower assumption: that the initial message establishing a secure connection would fit within a single packet. When larger messages appeared, some connections failed.

Further testing also found that some servers mishandled requests to repeat part of the initial negotiation using a different cryptographic method. Engineers had to account for these compatibility problems while expanding support for post-quantum key establishment.

The phenomenon is known as protocol ossification. Software and equipment gradually become dependent on patterns of behaviour that the underlying standards never required. Because those patterns persist for years, the problem may go unnoticed until somebody tries to do something equally valid, but different. The result is that a mathematically sound security upgrade can fail for reasons entirely outside the mathematics.

And the problem becomes more demanding when the systems being changed are not web browsers that can receive regular software updates. A telecommunications network may rely on equipment installed years earlier, with cryptographic functions built into devices that are dependent on manufacturers for updates. An operator cannot replace an existing algorithm with one that its equipment does not support. It may need new firmware, replacement hardware or a coordinated upgrade involving several suppliers.

The industry has encountered similar difficulties before. Serious weaknesses in the SHA-1 hash function were publicised in 2005, prompting efforts to replace it years before researchers demonstrated an actual attack in 2017. Yet in 2022, NIST was still setting out plans to withdraw its remaining approved uses by the end of 2030.

The vulnerabilities are different, but the history demonstrates how cryptographic technology can remain embedded in systems long after the reasons for replacing it have become well established. The NCSC’s timetable reflects these realities. It anticipates that some larger organisations may require two or three years merely to discover where vulnerable cryptography is being used, identify dependencies and prepare a migration plan.

For smaller businesses using mainstream services, the change may be largely invisible, delivered through ordinary updates from their providers. For operators of specialised or long-lived systems, it may become a substantial engineering programme.

Changing one risk for another

With the threat understood and replacement algorithms available, it might appear that migrating as quickly as possible would be the safest course. But introducing new cryptography is itself a security trade-off.

Algorithms become trusted through sustained examination by researchers looking for ways to defeat them. RSA and elliptic-curve cryptography have been studied for decades. The newer post-quantum algorithms have undergone extensive analysis, but their practical use is less mature. During NIST’s evaluation process, weaknesses were found in some proposed alternatives, leading to their rejection or withdrawal. That scrutiny is an essential part of developing confidence in the surviving designs.

There are also the ordinary risks of changing complicated systems: programming mistakes, unexpected interactions with existing software and failures in the procedures used to manage cryptographic keys.

Some providers have responded by combining existing and post-quantum cryptography rather than immediately relying on the new mathematics alone. In 2023, the messaging service Signal introduced a new method of establishing encryption keys that combined its established elliptic-curve approach with a post-quantum algorithm. The resulting secret was designed to remain protected as long as at least one of the two components resisted attack. In effect, Signal could introduce protection against future quantum computers without abandoning the security properties of conventional cryptography on which it already depended.

Other organisations may choose different approaches. The common difficulty is that a cryptographic migration cannot be assessed only by whether the replacement algorithm is stronger against one particular attack. It must also be considered in the context of the systems that will use it, the information they protect and the wider environment in which they function.

Security technologist Bruce Schneier has argued for years that systems should be designed with cryptographic agility: the ability to change their cryptographic algorithms without having to rebuild the surrounding infrastructure. In August 2026, commenting on the introduction of post-quantum algorithms into a widely used Python cryptography library, Schneier observed that the reason to make such changes now was precisely that there was no emergency.

The absence of an immediate attack creates time to test the new methods, resolve problems and introduce them gradually. It also creates an opportunity to make future algorithm changes easier than this one has been. The mathematical assumptions underlying security systems have changed before and will change again, whether because of quantum computing or discoveries that nobody currently anticipates.

The clocks are already ticking

The quantum threat is often discussed as a race towards the day on which computers become powerful enough to break modern public-key cryptography. Researchers estimate the resources that such a machine might require, debate the pace of hardware development and try to predict when the necessary breakthroughs will occur.

But for those responsible for protecting information, the problem involves three different timescales. One is how long the information must remain confidential. Another is how long it will take to replace the cryptography protecting it. The third is the time until an attacker possesses a quantum computer capable of exploiting the old methods.

The last of these is the most uncertain. Yet decisions about the first two cannot simply be postponed until it becomes known. An organisation can assess which records need to remain secret for decades, which systems will be difficult to upgrade and which technology suppliers must deliver replacements. It can then prioritise the information and infrastructure most exposed to a future attack, even without knowing precisely when that attack might become possible.

For a diplomatic secret that must remain confidential for twenty years, the relevant risk may have begun already. For a routine connection protecting information that becomes worthless within days or weeks, the calculation may be different. A single prediction about the arrival of quantum computing cannot capture all of these circumstances.

The transition is therefore not a declaration that today’s cryptography has suddenly become unsafe, nor a prediction that quantum computers will defeat it by 2035. It is an attempt to change the systems on which we depend while there is still an opportunity to do so deliberately.

Shor’s discovery gave the world an unusual amount of warning about a possible future attack. That is why quantum computing is changing encryption now: not because the computer capable of breaking it has arrived, but because the security of today’s information cannot be decided solely by the capabilities of today’s computers.

Image credit: Y. Colombe/NIST via Wikimedia Commons