Shor’s Algorithm
A quantum algorithm providing an exponential speedup for integer factorization and discrete logarithm computation relative to the best known classical algorithms, constituting the specific mathematical mechanism by which a cryptographically relevant quantum computer would break RSA and elliptic curve cryptography.
- Provides an exponential speedup over the best known classical factoring algorithms, turning a problem considered computationally infeasible at RSA's typical key sizes into one a large-enough quantum computer could solve in practical time
- Requires a quantum computer with sufficient qubit count and, critically, sufficient error correction to run reliably — a requirement no quantum computer built to date meets for cryptographically relevant key sizes
- Specifically threatens algorithms whose security relies on factoring or discrete logarithm hardness (RSA, Diffie-Hellman, elliptic curve cryptography), rather than being a general-purpose threat to all cryptography
- Does not threaten symmetric encryption algorithms (like AES) or hash functions to the same degree — those face a different, comparatively modest quantum speedup (via Grover's algorithm) that is generally addressed by simply using larger key sizes rather than requiring an entirely new algorithm family
- The specific, named mathematical mechanism behind the broader "quantum computing threat" discussed throughout this corpus's quantum security material — understanding Shor's algorithm specifically clarifies exactly which cryptographic functions are at risk and why
Classical computers can factor large integers, but the time required grows so quickly with key size that RSA's typical key sizes are considered computationally infeasible to factor within any practical timeframe using classical methods. Shor's algorithm changes this calculation entirely for a quantum computer: it solves the same factoring problem with a runtime that scales far more favorably, turning what was computationally infeasible into merely difficult — assuming the quantum computer running it has enough qubits and low enough error rates to execute the algorithm reliably at the key sizes real-world cryptography uses.
The precision Shor's algorithm adds to the general "quantum computing threat" narrative matters because it clarifies exactly which cryptographic functions are at risk and which are not: algorithms whose security rests on factoring or discrete logarithm hardness — RSA, Diffie-Hellman key exchange, elliptic curve cryptography — are the direct target, while symmetric algorithms like AES face a much more modest quantum speedup that larger key sizes can generally address without requiring an entirely different algorithmic approach. This distinction is exactly why post-quantum cryptography's algorithm families focus specifically on replacing the factoring- and discrete-logarithm-based algorithms Shor's algorithm threatens, rather than needing to replace symmetric cryptography wholesale. For CE verticals, understanding Shor's algorithm specifically — rather than treating "quantum threat" as an undifferentiated risk — clarifies migration priority: asymmetric key exchange and digital signature algorithms are the urgent post-quantum migration targets, while symmetric encryption used for bulk data protection faces a comparatively manageable adjustment.
Shor’s Algorithm. ConnectedEarth Knowledge Base. https://connectedearth.space/knowledge-base/shors-algorithm/ (updated 13 September 2026).