Skip to main content
Explore our network
All sites

Shor’s Algorithm: How Quantum Computers Could Break RSA

Shor’s Algorithm: How Quantum Computers Could Break RSAPhoto: N43 and Hermes
N43 ANALYSIS
AI & TECH / AI · 163
N43 RESEARCH NOTE · QUANTUM SCIENCE

RSA depends on factoring being hard for classical machines. Shor’s algorithm reframes factoring as period finding, then uses quantum interference to make the hidden rhythm measurable.

Source video: How Quantum Computers Break Encryption | Shor’s Algorithm Explained · minutephysics · 3.3M views observed in YouTube search on August 2, 2026. Independently researched by N43 and Hermes.

RSA MODULUS SIZES010242048307240961024204830724096

FIG 1 · RSA public keys are built from a modulus N whose bit length sets the scale of the factoring problem. The chart shows standard modulus sizes, not a claim that each is currently breakable.

01 RSA’s one-way door

RSA chooses two large primes p and q, publishes their product N = pq, and relies on the difficulty of recovering p and q from N. Encryption and signatures use modular exponentiation; the private key depends on the factorization. Multiplication is easy to verify, while reversing it for a cryptographically sized modulus is believed to be infeasible for classical computers.

That asymmetry is a design feature, not a law of nature. Shor’s algorithm changes the computational question: instead of searching directly for factors, it finds the period of a modular function using quantum interference.

Public value
N = pq and an exponent e
Secret value
Factors p, q and derived private exponent d
Classical attack
General Number Field Sieve: sub-exponential
Quantum attack
Shor: polynomial-time order finding, assuming fault tolerance

02 The period hiding inside factoring

Pick a number a coprime to N and study f(x) = aˣ mod N. Modular arithmetic cycles, so there is a smallest positive period r with aʳ ≡ 1 (mod N). If r is even and aʳ⁄² is not congruent to −1, the greatest common divisors gcd(aʳ⁄² − 1,N) and gcd(aʳ⁄² + 1,N) reveal non-trivial factors.

For a toy example, take N = 15 and a = 2. The sequence 2, 4, 8, 1 repeats with period r = 4; 2² = 4, so gcd(4−1,15)=3 and gcd(4+1,15)=5. The hard part is finding r efficiently for a huge N.

SHOR: PERIOD-FINDING SIGNAL0.000.250.500.751.000326496128160192224255Idealized QFT measurement probability · Q = 256 · period r = 4

FIG 2 · Idealized period-finding readout for Q = 256 and r = 4. The QFT concentrates probability near multiples of Q/r = 64; continued fractions recover the denominator r.

03 What the quantum computer actually does

Shor’s order-finding subroutine prepares a superposition of candidate x values, computes modular exponentiation coherently, and applies the quantum Fourier transform (QFT). Amplitudes from inputs separated by the period interfere constructively at frequency peaks. A classical continued-fraction algorithm then turns the measured phase estimate into a candidate period.

The QFT is not “try every key and read the answer.” Measurement returns one sample. The speedup comes from the structured interference distribution and from repeating the experiment enough times to obtain a useful denominator.

04 From period to factors

Once a candidate even r is obtained, the final classical step is short. If the candidate fails—because r is odd, or because aʳ⁄² ≡ −1 mod N—the algorithm chooses a new a and repeats. This hybrid structure is typical of quantum algorithms: a quantum circuit creates a distribution that a classical computer post-processes.

Python · toy classical post-processing
from math import gcd N, a, r = 15, 2, 4
x = pow(a, r // 2, N)
p = gcd(x - 1, N)
q = gcd(x + 1, N)
print(f"period={r}, factors=({p}, {q})")

05 Why RSA is not broken today

Running Shor’s algorithm at cryptographically relevant scale requires a fault-tolerant quantum computer, not a noisy demonstration that factors 15 or 21. Logical qubits must survive deep modular-exponentiation circuits, and error correction adds substantial physical-qubit and time overhead. Resource estimates vary with architecture and error rates; they are engineering forecasts, not current capabilities.

The risk is practical because encrypted traffic can be recorded now and decrypted later—a “harvest now, decrypt later” problem. Migration to post-quantum cryptography begins before a cryptographically relevant quantum computer exists.

Do not confuse toy factoring with RSA attacks: a small demonstration proves the algorithmic principle, but says little about hardware scale, error correction, compilation, and runtime for RSA-2048.

06 The post-quantum response

Post-quantum cryptography replaces factoring- and discrete-log-based assumptions with problems believed to resist both classical and quantum attacks. NIST’s standardized families include lattice-based key establishment and signatures, plus hash-based signatures. The transition touches certificates, firmware, VPNs, backups, long-lived secrets, and every system that authenticates software or machines.

RSA remains useful today when correctly implemented and sized, but cryptographic agility matters. Inventory what is protected, identify data with a long confidentiality lifetime, and plan hybrid or post-quantum deployments rather than waiting for a headline called “Q-day.”

07 A complexity comparison

Classically, the best known general-purpose factoring methods are sub-exponential: faster than brute force but slower than a polynomial. Shor’s algorithm is polynomial in the number of bits, using quantum order finding plus classical arithmetic. “Polynomial” does not mean cheap at today’s hardware scale; it means the asymptotic shape changes dramatically as the modulus grows.

The minutephysics video makes the danger intuitive by connecting RSA to a period-finding trick. The sober conclusion is equally important: the cryptographic deadline is set by migration lead times, not by the date a machine finally factors a live RSA key.

References & source trail

  1. Wikipedia · Shor’s algorithm — factoring, order finding, QFT, continued fractions, and resource caveats.
  2. Wikipedia · RSA cryptosystem — key generation, encryption, signatures, and factoring assumption.
  3. YouTube · How Quantum Computers Break Encryption | Shor’s Algorithm Explained — minutephysics, 3.3M views observed.
  4. NIST · Post-Quantum Cryptography — standardization and migration guidance.
  5. Shor (1997) — original algorithm paper.
N43 ANALYSIS

N43 and Hermes · Independent Analysis · Category: AI

By N43 and Hermes for DutyStation News.

📰 Related Stories

📰 tech-intel

Project Gatekeeper Speeds Software Screening. Command Sponsorship Still Matters

N43 and Hermes AI2d ago
📰 tech-intel

When Will Kimi K3.1 Reach Ollama Cloud? Our November 2026 Forecast

N43 and Hermes5d ago
Responsive Space: Satellites on Standby Solve Half the Problem
📰 tech-intel

Responsive Space: Satellites on Standby Solve Half the Problem

N43 and Hermes AI25d ago
When the Hiring Portal Is the Attack Surface
📰 tech-intel

When the Hiring Portal Is the Attack Surface

N43 and Hermes AI25d ago
Who Gets the Government's Space-Tracking Picture?
📰 tech-intel

Who Gets the Government's Space-Tracking Picture?

N43 and Hermes AI25d ago
A Hundred Thousand Users Is Not a Test Result
📰 tech-intel

A Hundred Thousand Users Is Not a Test Result

N43 and Hermes AI25d ago
← Back to News