β Quantum Computing Fundamentals
Day 4 of 14
The Algorithms That Change Everything
Shor's Algorithm β The Cryptography Killer
Discovered by Peter Shor in 1994, this algorithm factors large numbers exponentially faster than any known classical algorithm.
Why it matters: RSA encryption (used by HTTPS, banking, email) relies on the fact that multiplying two large primes is easy, but factoring the result is computationally infeasible. A 2048-bit RSA key would take a classical computer millions of years to crack. A large enough quantum computer running Shor's algorithm could do it in hours.
Current status: Today's quantum computers can't run Shor's at scale (too many qubits needed, too much noise). But 'harvest now, decrypt later' attacks are already happening β adversaries collect encrypted data today to decrypt once quantum computers mature.
Grover's Algorithm β The Search Speedup
Grover's algorithm searches an unsorted database of N items in βN steps instead of N/2 steps classically.
Practical example: cracking a 128-bit AES key classically requires 2ΒΉΒ²βΈ operations. Grover's reduces this to 2βΆβ΄ operations β still enormous, but the effective key strength is halved. This is why post-quantum standards recommend 256-bit AES instead of 128-bit.
Broader impact: Any problem that can be framed as 'search for a solution among many candidates' benefits from Grover's. This includes optimisation problems in logistics, finance, and machine learning.
β‘ Today's Action
Look up 'NIST post-quantum cryptography standards' β in 2024 NIST finalised the first post-quantum algorithms. Note which ones are approved and what problems they're based on (hint: not integer factoring).
π‘ Pro Tip
Shor's threatens asymmetric encryption (RSA, ECC). Grover's weakens symmetric encryption (AES). The response: larger symmetric keys (256-bit), and post-quantum asymmetric algorithms that don't rely on integer factoring.