Encryption Observer

Glossary The quantum question

Shor's algorithm

Shor's algorithm is a recipe for a quantum computer that can factor large numbers and solve related problems quickly. Those are exactly the problems that RSA and ECC rely on being hard.

Think of it like this

A master key design that already exists on paper. Nobody has yet built a machine big enough to cut it.

Today's algorithms and a large quantum computerBroken by Shor's algorithmSafe, or only weakened by Grover's algorithmA large quantum computer breaks today's public-key algorithms outright but only dents symmetric ciphers and hashes.
  1. RSA Factoring large numbers becomes easy with Shor's algorithm. Used for: Certificates, signatures, key loading Must be replaced.
  2. Elliptic curves ECDH, ECDSA and Ed25519 fall to a variant of Shor's algorithm. Used for: Key exchange, passkeys, crypto wallets Must be replaced.
  3. Diffie-Hellman The classic key exchange rests on a problem Shor's algorithm solves. Used for: VPNs, older TLS Replaced by ML-KEM.
  4. AES-128 Grover's algorithm in theory reduces it to about 64-bit strength. Used for: Disk, Wi-Fi, web traffic The UK NCSC still treats it as safe.
  5. AES-256 Even with Grover's algorithm, far beyond reach. Used for: Long-lived secrets Recommended where data must stay secret for decades.
  6. SHA-256 and SHA-3 Hash functions are only modestly affected. Used for: Signatures, passwords, blockchains Stay in use, including inside post-quantum signatures.

Why it matters

Shor's algorithm is the reason public-key cryptography is being replaced worldwide.

Where you meet it

In the maths. It has only been run on tiny toy examples so far.

Go deeper history and technical detail

Published by Peter Shor in 1994. It turns factoring into finding the period of a repeating pattern, which a quantum computer does efficiently using the quantum Fourier transform. It does not meaningfully affect symmetric ciphers like AES or hash functions.

Read or watch next

Related terms

Cite this page Encryption Observer, “Shor's algorithm”, encryption.observer/terms/shor/, checked December 2026.