The Quantum Threat to Cryptography

An Overview

Almost everything you trust about the digital world rests on a quiet assumption: that certain math problems are too hard to solve. When your browser shows a padlock, when a software update installs without warning, when a bank confirms a transfer, invisible cryptography is doing the work of deciding who is who and keeping strangers from reading the contents. That machinery has held up for decades. A large enough quantum computer would break a central part of it, and the effort to replace that part before such a machine exists is called post-quantum cryptography, or PQC. This article walks through what PQC is, why the threat is already present tense, which standards have been chosen to answer it, who is affected, and the timeline that governments have now written into law.

What Cryptography Quietly Does

To see what a quantum computer threatens, it helps to separate the two very different jobs that cryptography performs, because a quantum computer treats them very differently.

The first job is symmetric cryptography. Here a single shared secret key both locks and unlocks the data, the way a single physical key opens and closes the same lock. The Advanced Encryption Standard (AES) is the workhorse of this category, and it is fast and well understood. The catch is practical: both parties have to already share the secret key before they can talk, which is easy for a hard drive you own but awkward for two computers meeting for the first time across the open internet.

Source: ssl2buy.com

The second job solves exactly that problem, and it is where the danger lies. Asymmetric cryptography, also called public-key cryptography, uses a mathematically linked pair of keys instead of one. A public key can be handed out freely, and a private key is kept secret. Anyone can use the public key to lock a message that only the private key can unlock, and the holder of the private key can produce a digital signature that anyone can verify but no one can forge. This is the invention that lets strangers establish a shared secret over a channel that eavesdroppers are watching, and it is the foundation of TLS (the padlock in your browser), VPNs, the certificate authorities that vouch for websites, code signing, and secure boot. The algorithms that do this work are named RSA, Diffie-Hellman, and the elliptic-curve family (ECDH for key exchange and ECDSA for signatures).

Source: ssl2buy.com

The reason public-key cryptography works is that each of these algorithms is built on a math problem that is easy to state and, for a classical computer, effectively impossible to reverse. RSA rests on the difficulty of taking a very large number and finding the two prime numbers that were multiplied to make it. Diffie-Hellman and the elliptic-curve schemes rest on a cousin called the discrete logarithm problem. Multiplying two large primes together is quick. Factoring the result back apart, using the best methods known, would take a classical machine longer than the current age of the universe for the key sizes in common use. That gap between the easy direction and the hard direction is the entire source of the security.

How a Quantum Computer Breaks It

A quantum computer is not simply a faster version of an ordinary one. It stores information in qubits, which can hold a blend of possibilities at once rather than a settled zero or one, and a well-designed quantum algorithm can arrange those possibilities so that the wrong answers cancel out and the right one stands. For most everyday tasks this buys nothing. For a small number of very specific problems, it changes what is feasible, and two of those problems sit directly underneath the cryptography we just described.

The first is Shor's algorithm, published by the mathematician Peter Shor in 1994 [1]. Shor showed that a large quantum computer could factor huge numbers and solve the discrete logarithm problem not in cosmic timescales but in a matter of hours. The intuition, stripped of the mathematics, is that factoring can be rewritten as a question about finding a repeating pattern, a period, hidden inside a very large sequence. Classical computers have no efficient way to find that period. A quantum computer can examine the structure of the whole sequence at once and extract the period using an operation called the quantum Fourier transform. Because the same underlying trick dissolves both the factoring problem and the discrete logarithm problem, RSA, Diffie-Hellman, ECDH, and ECDSA all fall to the same advance. This is not a partial weakening that a longer key would fix. Given a public key, a sufficiently large quantum computer recovers the matching private key outright.

The second is Grover's algorithm, published by Lov Grover in 1996 [2]. Grover found a way for a quantum computer to speed up brute-force search, but only quadratically, meaning it cuts the effective work down to roughly the square root of the classical effort. Against symmetric cryptography this is a manageable dent rather than a collapse. It effectively halves the security level of a key, so AES-256 still retains about 128 bits of protection, which remains far beyond any conceivable attack, while AES-128 drops to a level that is uncomfortable for data meant to stay secret for decades. The fix here is simply to use larger keys and larger hash outputs, which is why the whole PQC effort concentrates on replacing public-key cryptography while leaving AES-256 and modern hash functions like SHA-256 essentially in place.

The asymmetry is the thing to hold onto. Symmetric cryptography survives the quantum era with modest adjustments. Public-key cryptography, as we deploy it today, does not survive at all, and it happens to be the part that secures nearly every connection made across the internet.

Harvest Now, Decrypt Later

A natural response is to relax, because no quantum computer capable of any of this exists yet. That response misreads the timing of the threat, and the reason is a strategy with a plain name: harvest now, decrypt later (sometimes store now, decrypt later).

An adversary does not need a working quantum computer today to benefit from one tomorrow. Encrypted traffic can be intercepted and recorded right now, at scale, and simply stored. Cloud archives are cheap and patient. When a capable quantum computer eventually arrives, everything in that archive that was protected by public-key cryptography can be unlocked retroactively. The confidentiality you believe you have on a connection today lasts only until the day the recording can be decrypted.

The cryptographer Michele Mosca framed the risk as a simple comparison of three durations [3]. Call the first the shelf life of your secret, meaning how many years the information must stay confidential. Call the second your migration time, meaning how long it will take you to move your systems onto quantum-resistant cryptography. Call the third the time remaining until a capable quantum computer exists. If the shelf life plus the migration time is longer than the time remaining, you are already exposed, because your data will still be sensitive and your systems will still be vulnerable at the moment the machine switches on. For anything with a long confidentiality horizon, such as medical records, state secrets, financial and legal records, or intellectual property, that window has, for practical purposes, already opened.

When Does the Threat Arrive?

Experts disagree about the arrival date, and anyone offering a confident single year is guessing. What can be said is that the estimates are converging on a range that no long-lived system can safely ignore.

The obstacle is not raw qubit count alone but stability. Today's quantum computers are noisy, and their qubits lose their delicate state quickly. Breaking RSA at the sizes in real use requires thousands of stable logical qubits, each of which must be assembled from many noisy physical qubits stitched together by error correction. The encouraging news for defenders is that this is genuinely hard. The sobering news is that the estimated cost keeps falling. In an analysis published in 2021, Craig Gidney and Martin Ekerå estimated that factoring a 2048-bit RSA key would take on the order of twenty million noisy physical qubits running for about eight hours [4]. In 2025, Gidney revised the estimate sharply downward, to well under a million noisy qubits over a few days, a roughly twentyfold reduction driven not by new hardware but by better algorithms and error correction [5]. The target is moving toward us even while the machines themselves remain out of reach.

Expert opinion tracks that movement. The Global Risk Institute surveys leading researchers each year and publishes a quantum threat timeline. Its recent editions place a meaningful and rising probability on a cryptographically relevant quantum computer appearing within a decade, with the estimated likelihood over a fifteen-year horizon rated as more likely than not [6]. The consistent message across surveys is to plan around the early 2030s and to treat later arrival as a fortunate bonus rather than a basis for delay.

Source: Global Risk Institute

References

  1. [1]P. Shor (1994). “Algorithms for quantum computation: discrete logarithms and factoring.” Proc. 35th Annual Symposium on Foundations of Computer Science, IEEE. doi:10.1109/SFCS.1994.365700.
  2. [2]L. Grover (1996). “A fast quantum mechanical algorithm for database search.” Proc. 28th Annual ACM Symposium on Theory of Computing. arXiv:quant-ph/9605043.
  3. [3]M. Mosca (2018). “Cybersecurity in an era with quantum computers: Will we be ready?” IEEE Security & Privacy 16(5), 38–41. doi:10.1109/MSP.2018.3761723.
  4. [4]C. Gidney & M. Ekerå (2021). “How to factor 2048 bit RSA integers in 8 hours using 20 million noisy qubits.” Quantum 5, 433. https://quantum-journal.org/papers/q-2021-04-15-433/
  5. [5]C. Gidney (2025). “How to factor 2048 bit RSA integers with less than a million noisy qubits.” arXiv:2505.15917. https://arxiv.org/abs/2505.15917
  6. [6]M. Mosca & M. Piani, Global Risk Institute, Quantum Threat Timeline Report (2024 and 2025 editions). https://globalriskinstitute.org/publication/quantum-threat-timeline-report-2025/