Computational cryptography › Public-key encryption and key exchange › Classical number theory › Factoring
Hardness assumptionKE: gives key exchangeTD: gives trapdoor functions

Integer factorization

In plain words

Multiplying two huge prime numbers is easy. Going backwards, from the product to the two primes, is believed to be extremely hard.

The idea: This is how a hard problem becomes a lock. Pick two big primes, multiply them, and publish the product as part of your public key. Anyone can use the product to scramble a message (RSA), but unscrambling needs a number that can only be computed from the two primes. So the primes are a secret shortcut, a trapdoor: easy for you, who made the product, and, as far as anyone knows, impossible for everyone else unless they factor the product.

Why it matters: RSA, still used in many website certificates, depends on it.

The details

On the map: best attack: number field sieve

Given N = p × q for two large primes, find p and q. Multiplying is easy. Factoring is believed hard for ordinary computers. The best algorithm, the general number field sieve[1], is faster than brute force but still sub-exponential: the public record is an 896-bit number (RSA-896, factored in September 2026 with about 30 GPU-years of computation)[2], and 2048-bit moduli are standard.

Shor's algorithm factors efficiently on a large quantum computer[3]. If factoring becomes easy, RSA, Rabin and Paillier all break. The converse is subtler for RSA: computing its private exponent from the public key is exactly as hard as factoring[4], but whether decrypting without it is remains open. It earns the KE tag because Rabin encryption is provably exactly as hard as factoring[5].

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 (7 boxes)

About the tags

KE
This assumption gives key exchange on its own, so it needs more than one-way functions and falls if public-key encryption is impossible.
TD
This assumption gives trapdoor functions on its own (computable by anyone, invertible only with a secret), so it falls if trapdoor functions don't exist. Schemes built on it need not use a trapdoor: ElGamal doesn't.

References

  1. A. K. Lenstra, H. W. Lenstra, M. S. Manasse and J. M. Pollard. The number field sieve. Lecture Notes in Mathematics, 1993. doi:10.1007/bfb0091537
  2. Stephen Weis. RSA-896. saweis.net, 2026. saweis.net/posts/rsa-896.html
  3. 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
  4. Alexander May. Computing the RSA Secret Key Is Deterministic Polynomial Time Equivalent to Factoring. Advances in Cryptology – CRYPTO 2004. doi:10.1007/978-3-540-28628-8_13
  5. Michael O. Rabin. Digitalized Signatures and Public-Key Functions as Intractable as Factorization. MIT/LCS/TR-212, 1979. apps.dtic.mil/sti/citations/ADA078415