Table of Contents
Somewhere in a lab, a refrigerator the size of a shipping container is holding a chip at a fraction of a degree above absolute zero. That chip can’t run a spreadsheet or load a web page. What it can do, in principle, is take a 2,048-bit number and split it into its prime factors in a few hours. One calculation like that would reach into every padlock icon on every browser tab.
Encryption is invisible until the day it stops working. This article is about how close that day might be, why it matters sooner than the hardware suggests, and what is quietly being built to replace the maths the internet currently depends on.
What Shor’s Algorithm Actually Does to RSA and ECC
In 1994, a mathematician at Bell Labs named Peter Shor published a method for factoring large numbers using a quantum computer. The security of RSA rests on a lopsided problem: multiplying two large primes together is easy, and separating the product back into those primes is brutally hard. Elliptic curve cryptography leans on a cousin of the same idea, the discrete logarithm problem over elliptic curves.
Shor’s algorithm attacks the structure underneath both. It uses the quantum Fourier transform to find periodicity hidden inside modular exponentiation, which is exactly the pattern needed to recover the private key. A problem that would take classical supercomputers longer than the universe has existed collapses into hours of quantum runtime.
Grover’s Algorithm Is the Smaller Headache
Grover’s algorithm speeds up brute-force search quadratically. That sounds terrifying until you do the arithmetic. A quadratic speedup effectively halves key lengths, so AES-128 drops to roughly 64 bits of security while AES-256 drops to about 128. Symmetric ciphers survive comfortably. SHA-256 stays in decent shape too, though SHA-1 was already finished.
The asymmetric algorithms are the ones in real trouble: RSA, Diffie-Hellman, ECDSA and ECDH. Those are the ones protecting the TLS handshake when you buy something online.
The Threat Arrives Years Before the Machine Does
There is a name for the strategy that makes this urgent: harvest now, decrypt later. An adversary records encrypted traffic today, stores it, and waits for the hardware to catch up. Nothing about that attack is hypothetical. Bulk interception of fibre traffic and archived ciphertext is an old intelligence habit.
Ask what your data is worth in 2040. Medical images, genomic sequences, passport scans, merger documents, source code, legal privileged material and cryptocurrency keys all have shelf lives longer than the machines that will read them. A hospital encrypting patient records in 2026 should assume those records are already on someone’s storage array.
The Hardware Gap Cuts Both Ways
Today’s quantum processors are nowhere near dangerous. Google’s Willow chip, unveiled in December 2024, carries about 105 physical qubits. Breaking RSA-2048 would need something in the region of 20 million noisy qubits running for eight hours, according to a widely cited 2019 estimate from Craig Gidney and Martin Ekerå. Error correction is the reason for the gap: one reliable logical qubit can swallow a thousand physical ones.
That gap is closing, unevenly and with setbacks. Research into how quantum mechanics moved from thought experiment to working technology makes the trajectory clear enough. Work on giant superatoms and better qubit stability hints at how the error-correction problem might eventually be tamed. Nobody credible will name a year, and a decade is the working assumption among security agencies.
Forged Signatures May Bite First
Decryption gets the headlines, but signatures carry a different and more immediate risk. A quantum computer running Shor’s algorithm could forge a digital signature, and signatures are what let your laptop trust a software update, let a bank verify a certificate, and let a firmware patch install itself without a human reading it by hand.
The decryption risk is slow and retrospective. The signature risk is instantaneous and forward-looking. An attacker who can forge a vendor’s signing key does not need to wait years to use it, and the trust damage to that vendor’s supply chain lasts far longer than a single breach.
What Replaces RSA and ECC
Post-quantum cryptography is not quantum at all. It is classical maths chosen to resist quantum attack, and it already runs on ordinary hardware. In August 2024, NIST finalised three standards: ML-KEM (FIPS 203) for key exchange, ML-DSA (FIPS 204) for signatures, and SLH-DSA (FIPS 205) as a hash-based backup. All three rely on problems, mainly lattice problems, for which no efficient quantum shortcut is known.
The shift to post-quantum algorithms and its effect on existing security stacks is already under way. Chrome and Cloudflare have shipped hybrid key exchange since 2023, and Apple added PQ3 to iMessage in 2024. Hybrids matter because they blend one classical and one post-quantum algorithm, so a break in either one alone doesn’t sink the connection.
There is a cost. An ML-KEM-768 public key is 1,184 bytes; an X25519 key is 32. Bigger keys mean larger handshakes, more packets, and slower connections on constrained networks. Engineers are discovering this the hard way.
The Migration Is the Part That Will Hurt
Crypto-Agility Is the Real Deliverable
Most organisations cannot list every place cryptography appears in their stack. It hides in TLS libraries, VPN concentrators, code-signing pipelines, database column encryption, HSMs, API tokens and hardcoded libraries in an app nobody has opened since 2019. The practical goal is crypto-agility: the ability to swap an algorithm without a three-year rewrite project. Build that first and the algorithm choice becomes almost an afterthought.
Some Devices Cannot Be Patched
A smart meter installed this year may still be in service in 2045. The same is true of industrial controllers, cars, medical implants, building access systems and satellite terminals. Plenty of them use RSA-2048 with firmware that cannot be updated and a service life measured in decades. These devices are the long tail of this transition, and they are the reason timelines published by standards bodies keep pointing at dates that feel uncomfortably close.
NIST’s draft guidance would deprecate RSA and ECC by 2030 and disallow them by 2035. The NSA’s CNSA 2.0 suite expects new national security systems to prefer post-quantum algorithms immediately and to be exclusively post-quantum by 2030.
Quantum Key Distribution Is Not a Drop-In Fix
QKD uses physics rather than maths, detecting eavesdropping through the disturbance it causes in photon states. It is genuinely elegant and genuinely limited. Fibre links degrade over roughly 100 to 200 kilometres, so long-haul routes require trusted relay nodes that reintroduce the very vulnerability the technology was meant to remove. It also needs dedicated hardware, not a software update, which rules it out for the average web server.
For most organisations, QKD is a niche tool for high-value fixed links. Post-quantum software is what will reach everyone else.
What Sensible Organisations Are Doing Now
The honest answer to “are we at risk today” is: not from any machine that exists. The honest answer to “should you act” is yes, because migration timelines for cryptography are measured in years, not sprints.
- Inventory the cryptography. Find out which algorithms protect which systems, which certificates expire when, and who owns each one.
- Prioritise long-lived data. Anything that must stay confidential for fifteen years or more deserves post-quantum protection before anything else.
- Start hybrid pilots. Enable post-quantum key exchange in a staging environment, measure the latency hit, and find the code that breaks.
- Audit signing infrastructure. Code-signing and firmware-signing keys are the highest-consequence targets and often the least documented.
- Set a hardware refresh rule. Any device with a fifteen-year service life bought today should have a post-quantum path, or a documented plan for its replacement.
- Assume archives are already compromised. Re-key, rotate secrets, and stop treating old encrypted backups as permanently sealed.
The teams that will handle this well are not the ones with the deepest quantum expertise. They are the ones who know exactly where their keys live, can change an algorithm in a week, and started asking the question while the answer was still theoretical.


