Computational cryptography › Public-key encryption and key exchange
Foundational assumption

No large-scale quantum computer

In plain words

A large enough quantum computer would easily solve the math behind today's digital padlocks (RSA and elliptic curves). Nobody has built one yet.

The idea: Ordinary computers attack factoring and discrete logs by clever searching, and the work grows extremely fast with key size. A quantum computer can instead recast these problems as finding the repeating period of a sequence, and quantum interference finds periods efficiently. RSA, Diffie-Hellman and elliptic curves all hide their secret in exactly such a period. Lattices, codes and hashes have no hidden period known to quantum algorithms, which is why they are the replacements.

Why it matters: Traffic recorded today could be decrypted later, which is why the switch to quantum-safe cryptography has already started.

Shor's trick: find the repeating pattern
1071421331475461371879410131111271341413150713xrepeats every 4 steps
The remainders of 7x divided by 15 repeat every 4 steps. That period gives away the factors: 72 - 1 = 48 shares the factor 3 with 15, and 72 + 1 = 50 shares the factor 5. For a 600-digit number the period is astronomically long and ordinary computers can't find it. A quantum computer running Shor's algorithm can, using interference. Discrete logs fall to the same idea.

The details

On the map: Shor's algorithm solves factoring and every discrete log

Shor's algorithm (1994)[1, 2], run on a large error-corrected quantum computer, factors integers and computes discrete logarithms efficiently. That breaks RSA, Diffie-Hellman, elliptic-curve cryptography and pairings.

Today's machines are far too small and noisy, but resource estimates keep falling: in 2025 Gidney estimated RSA-2048 could be factored with under a million noisy qubits in under a week[3].

"Harvest now, decrypt later" is the immediate risk: traffic recorded today could be decrypted once such machines exist. That is why key exchange is moving to hybrid post-quantum schemes first. Grover's algorithm only gives a square-root speedup[4] against symmetric ciphers and hashes, which longer keys absorb.

Rests on

If any of these breaks, this breaks too.

If it falls

If this breaks, these break with it.

Everything that falls with it (33 boxes)

References

  1. P.W. Shor. Algorithms for quantum computation: discrete logarithms and factoring. Proceedings 35th Annual Symposium on Foundations of Computer Science, 2002. doi:10.1109/sfcs.1994.365700
  2. Peter W. Shor. Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer. SIAM Journal on Computing, 1997. doi:10.1137/S0097539795293172
  3. Craig Gidney. How to factor 2048 bit RSA integers with less than a million noisy qubits. arXiv:2505.15917, 2025. arxiv.org/abs/2505.15917
  4. Lov K. Grover. A fast quantum mechanical algorithm for database search. Proceedings of the twenty-eighth annual ACM symposium on Theory of computing - STOC '96, 1996. doi:10.1145/237814.237866