Every time you log into a bank or send a private message, your data crosses public Wi-Fi, routers, and cables. Anyone listening on the wire—traditionally called Eve—can read every byte that passes by. Before Alice and Bob can scramble their messages, they need a shared secret key—without ever saying it out loud.
To agree on a secret in full view of Eve, they start with two public numbers: a base
(5) and a wrap-around clock (23). Each picks a private number
they never share—Alice picks 3, Bob picks
7—raises 5 to their secret power, and keeps the
remainder after dividing by 23. Only those mixed remainders,
10 and 17,
cross the wire.
Next, each combines the number they just received with their own private secret. Alice raises Bob's
17 to her secret
3 (mod 23) and gets
14; Bob raises Alice's
10 to his secret
7 (mod 23) and lands on the exact same
14. They now share a secret key to lock their
messages—while Eve, seeing only the remainders, cannot work backward to find their secret powers at
real-world sizes.
Another cornerstone of internet security, RSA, works like a padlock anyone can snap shut—but only you can open. You pick two secret prime numbers (17 and 23) and keep them hidden; together, they make your private key. Then you multiply them (17 × 23 = 391) and publish 391 to the world as your public padlock.
Now anyone can send you a secret message without ever meeting you first. To lock the letter
'A' (encoded as 65), a sender scrambles it with your public number
(65³ mod 391) and sends 143 across the open wire.
Knowing 391 lets anyone snap the lock shut—it does not show how to open it.
That is why an eavesdropper tries to reverse 391: splitting that public number back into
17 and 23 hands them your
private key—letting them unlock 143 right back into 'A'.
With 3 digits, testing primes one by one takes a moment. With real keys, every extra digit multiplies the
search until working backward becomes hopeless.
For decades, researchers have tested just how large a public key classical computers can actually factor. Progress has been steady but slow: even in September 2026, it took 2,048 GPUs running for ten days to crack an 896-bit key (about 270 digits long).
Standard web encryption—RSA-2048—uses a 617-digit public key. That extra length turns a ten-day computation into a vertical wall: factoring it on classical hardware would take roughly 300 trillion years, more than 20,000× the age of the universe.
That margin holds—except adversaries do not need to crack your messages today. Storage is cheap: they can record encrypted traffic now—emails, medical records, state secrets—and wait to unlock it the day a better machine or mathematical shortcut arrives.
The main threat to that 300-trillion-year wall is a quantum computer—though not for the reason pop science claims. It does not try every prime factor at once. While qubits can hold many possibilities together in a wave-like state called superposition, measuring it directly collapses everything into one random, useless guess.
A quantum computer's real power is wave interference—the same physics behind noise-canceling headphones. Algorithms line up overlapping waves of probability so that wrong answers cancel each other out to zero, while the hidden right answer reinforces into one sharp peak.
In 1994, Peter Shor found a repeating rhythm hidden inside factoring: repeatedly multiplying a number
inside a lock's wrap-around clock (like 2ˣ mod 15) loops in a steady beat
(1, 2, 4, 8… — period r = 4). A
Quantum Fourier Transform uses wave interference to hear that beat
directly—and from the beat, simple arithmetic exposes the secret primes (3 × 5).
Against a large, error-corrected quantum computer, Shor's shortcut collapses RSA-2048's 300 trillion years to under a week—and elliptic-curve keys (ECC) to roughly an hour. Meanwhile, smarter quantum algorithms have cut the physical qubits required by more than 1,000× since 2012.
Not every lock breaks. Once Alice and Bob share a secret key, they scramble bulk data with symmetric encryption like AES-256. Because AES has no repeating math rhythm for Shor's algorithm to grab, quantum computers only get a modest speedup (Grover's search)—easily offset by using 256-bit keys.
For decades, defenders tracked one clock: how quickly labs could build bigger quantum chips. Then in 2026, frontier AI began finding algorithmic shortcuts and optimizing code-breaking sieves—compressing years of cryptanalysis into days.
Late-November leaks sparked rumors that Anthropic's AI had broken RSA-2048 and Bitcoin. The actual
disclosure was narrower: four formal papers detailing a theoretical quantum attack on certain lattice
problems—impractical to run (> 2¹&sup0;&sup0;&sup0; operations), yet striking for how
fast AI helped find it.
That shifted how security teams model risk. Physical qubit counts can be tracked on hardware roadmaps years in advance; defenders cannot put an AI discovering a mathematical shortcut on a calendar.
In December 2026, the NSA urged an immediate move to quantum-safe standards, nine major tech providers backed the call, and Cloudflare pulled its Project Quantum Leap deadline forward from 2029 to 2027. While 73% of web traffic encryption is already upgraded, website certificates and authentication remain the urgent gap.
To replace RSA, post-quantum cryptography trades prime factors for puzzles with no repeating rhythm for Shor's algorithm to exploit. The new web standard, ML-KEM, hides a key near a point on a 768-dimensional grid (a lattice), nudged off-center by random noise. With your secret set of short, clean grid steps, snapping back to the true point is effortless; with the skewed public grid, even a quantum computer gets lost.
Encryption hides messages, while digital signatures prove who sent them—from software updates to website certificates. Lattice replacements like ML-DSA and compact FN-DSA secure those signatures, though they are 10× to 50× larger than classical ones. Merkle Tree Certificates bundle proofs compactly so web connections stay fast.
What if someone someday discovers a surprise shortcut against lattices, too? For that fallback, NIST standardized SLH-DSA—built purely from one-way hashes (irreversible digital fingerprints). By linking thousands of one-time signatures up into a single 32-byte public root, it relies on zero lattice or factoring math.
For encryption, HQC provides a separate non-lattice backup, hiding
keys inside deliberate bit-flip errors in an error-correcting code that only the key holder
can untangle. Meanwhile, the web isn't betting on one lock:
hybrid key exchanges pair classical (X25519) and
post-quantum (ML-KEM-768) math—forcing an attacker to break both—and already protect
73% of Cloudflare browser traffic.