EN

Is RSA quantum safe?

RSA has protected the internet since the 1970s. It's also the textbook example of what a quantum computer breaks. Here's how close that is, and what replaces it.

Updated 2 min read4 sources
Short answer

No. Shor's algorithm factors the large numbers RSA depends on, so a large fault-tolerant quantum computer could break any RSA key size. In 2025, Craig Gidney estimated RSA-2048 could be factored with fewer than one million noisy qubits in under a week. Larger keys such as RSA-3072 only buy time; the NSA suggests them as a stopgap while systems move to post-quantum algorithms like ML-KEM and ML-DSA.

How close is RSA-2048 to falling?

Gidney's 2025 paper cut the estimated cost of factoring RSA-2048 to under a million noisy qubits running for less than a week (arXiv 2505.15917), about 20 times fewer qubits than his 2019 estimate. No machine of that size exists yet, but the trend is clear.

KeyAgainst classical computersAgainst Shor's algorithm
RSA-1024DeprecatedBroken
RSA-2048Secure todayBroken (~1M noisy qubits)
RSA-3072/4096SecureBroken, needs somewhat more qubits

RSA and crypto

Blockchains don't use RSA for signatures, so RSA doesn't secure your coins directly. It still matters around them: TLS certificates for exchanges and wallet websites, code-signing for wallet software, and PGP keys used to verify releases.

The NSA's December 2026 advisory suggested larger classical keys such as 3,072-bit RSA only as a stopgap for systems that can't yet switch to NIST's post-quantum standards (The Record).

Frequently asked questions

Is RSA-4096 quantum safe?

No. It needs more qubits than RSA-2048, but Shor's algorithm still breaks it efficiently.

What replaces RSA?

ML-KEM (FIPS 203) for key exchange and ML-DSA (FIPS 204) or SLH-DSA (FIPS 205) for signatures, often deployed in hybrid mode alongside classical algorithms during the transition.

Sources

  1. Shor (1994): Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer
  2. Gidney (2025): How to factor 2048-bit RSA integers with less than a million noisy qubits
  3. The Record: Feds say AI firms disclosed ‘recent discoveries’ on cryptography; NSA wants quicker move to quantum resistance
  4. NIST (Aug 2024): First 3 finalized post-quantum encryption standards (FIPS 203, 204, 205)