In the rapidly evolving landscape of cybersecurity, Shor’s algorithm stands out as a groundbreaking result, particularly in the context of quantum computing. But what exactly is Shor’s algorithm, and why is it so significant?
What is Shor’s Algorithm?
Shor’s algorithm, published by mathematician Peter Shor in 1994, is a quantum algorithm that factors large integers and computes discrete logarithms in polynomial time. The best known classical algorithms for these problems, such as the general number field sieve, take sub-exponential but super-polynomial time, so on a large enough quantum computer Shor’s algorithm would be dramatically faster. In simpler terms, it could break very large numbers into their prime factors and solve the related discrete logarithm problem, the two mathematical problems that underpin most of today’s public-key cryptography.
The Threat to Current Cryptography
The importance of Shor’s algorithm lies in its ability to break widely used public-key algorithms. RSA relies on the difficulty of factoring large integers. Elliptic Curve Cryptography (ECC, including ECDSA and ECDH), DSA and Diffie-Hellman rely on the difficulty of discrete logarithms. Shor’s algorithm solves both problems efficiently, so a sufficiently large, fault-tolerant quantum computer running it would render all of these algorithms insecure.
Symmetric cryptography is affected much less. Grover’s algorithm gives at most a quadratic speed-up against brute-force key search, and AES and the SHA-2 and SHA-3 hash functions are not being replaced.
Why Does This Matter?
Practical quantum computers capable of running Shor’s algorithm at a scale large enough to break RSA-2048 or common elliptic curves are not yet available, and nobody can say exactly when they will be. The risk already matters, though, because of “harvest now, decrypt later”: encrypted traffic recorded today could be decrypted once such a machine exists. Regulators have responded with dates. NIST IR 8547 (final, October 2026) deprecates quantum-vulnerable public-key algorithms such as RSA, ECDSA and ECDH after 2030 and disallows them after 2035 under NIST standards.
Preparing for a Post-Quantum World
The threat of Quantum Computers capable of running Shor’s algorithm has driven the development of Post-Quantum Cryptography (PQC): public-key algorithms based on problems for which no efficient quantum attack is known. NIST published the first three PQC standards as final on 13 August 2024: ML-KEM (FIPS 203, formerly CRYSTALS-Kyber) for key establishment, and ML-DSA (FIPS 204, formerly CRYSTALS-Dilithium) and SLH-DSA (FIPS 205, formerly SPHINCS+) for digital signatures.
Conclusion
Shor’s algorithm is more than a theoretical breakthrough; it’s a wake-up call for the cybersecurity industry. Understanding which of your systems depend on RSA, ECC or Diffie-Hellman, and planning their migration to the new standards, is the practical response.