FOUNDING PRICING · 40% OFFfor the first 1,000 members · from ₹95/month
ArchitectureNIST12 min read

Will Quantum Computers Break RSA-2048? Post-Quantum Explained

How RSA-2048 works, how many qubits it would take to break it, what ML-KEM and ML-DSA replace it with, and what the December 2026 NSA warning really says.

ShareXLinkedInWhatsApp
A black cylindrical quantum computer cryostat in a glass cube lit from above, labelled IBM Quantum System One.
A black cylindrical quantum computer cryostat in a glass cube lit from above, labelled IBM Quantum System One. Photo: IBM Research, CC BY 2.0, via Wikimedia Commons.

No quantum computer can break RSA-2048 today. Real demonstrations of Shor's algorithm, the quantum method for factoring large numbers, have factored numbers no bigger than 35. Yet the estimated cost of the attack has fallen about twentyfold in six years, governments have published dates for retiring RSA, and on 2 December 2026 the US National Security Agency told the operators of national security systems to speed up their move to new encryption. This post explains how RSA-2048 works, what a quantum attack on it would need, which post-quantum algorithms replace it, and what the news of early December 2026 does and does not say.

Log-scale bars: qubit estimates for breaking RSA-2048 fell from 20 million to under 100,000, against Willow's 105
The gap between the qubits an attack needs and the qubits built is still at least a thousandfold.

How does RSA-2048 work?

RSA is a public-key system. You pick two large secret primes, p and q, and publish their product n = p * q along with a public exponent e. For RSA-2048, n is a 2048-bit number, about 617 decimal digits long. Anyone can lock a message to you with n and e. Only someone who knows p and q can compute the private exponent d that unlocks it.

Here is the whole idea with numbers small enough to read:

p, q = 61, 53
n = p * q                    # 3233, the public modulus
phi = (p - 1) * (q - 1)      # 3120, computable only if you know p and q
e = 17                       # public exponent
d = pow(e, -1, phi)          # 2753, the private exponent

message = 65
cipher = pow(message, e, n)  # 2790, anyone can compute this
print(pow(cipher, d, n))     # 65, only the holder of d can

The security rests on one hard problem: given n, find p and q. The best classical method, the general number field sieve, takes a super-polynomial amount of time on a 2048-bit number, and NIST rates RSA-2048 at about 112 bits of security. Real RSA also never encrypts a bare message. It wraps it in padding schemes such as OAEP and PSS, specified in RFC 8017, because the textbook version above is easy to attack in other ways.

Where is RSA-2048 actually used today? In TLS 1.3, RSA no longer carries the session key at all. The key exchange uses elliptic curves such as X25519. RSA mostly survives in certificates and signatures: the certificate that proves a server is who it claims to be, code-signing keys, JWT signing keys and SSH host keys. That distinction matters later, because encryption and signatures face different risks.

Why can a quantum computer break RSA but not AES?

In 1994 Peter Shor showed that a quantum computer could factor in polynomial time. The trick is to turn factoring into period finding. Pick a number a, and look at the sequence a^x mod n. It repeats with some period r. A quantum computer can find r efficiently using the quantum Fourier transform, and once you have r, ordinary arithmetic gives the factors:

from math import gcd

N, a = 15, 7
r = next(r for r in range(1, N) if pow(a, r, N) == 1)   # the period: 4
print(r, gcd(pow(a, r // 2) - 1, N), gcd(pow(a, r // 2) + 1, N))   # 4 3 5

On N = 15 a plain loop finds the period instantly. On a 2048-bit number no classical computer can, and that period-finding step is the only part that needs quantum hardware. The same method breaks elliptic-curve cryptography and classic Diffie-Hellman, because they rest on a closely related problem.

Symmetric encryption is in a different position. The best known quantum speedup for brute-forcing an AES key, Grover's algorithm, is only quadratic. NIST's transition report says its symmetric standards are significantly less vulnerable to known quantum attacks than public-key cryptography, and that AES at 128 bits and above meets its lowest post-quantum security category. So the quantum threat is mainly a public-key problem: RSA, elliptic curves and Diffie-Hellman.

How many qubits does it take to break RSA-2048?

A useful attack needs thousands of logical qubits that stay error-free for hours, and each logical qubit is built from many noisy physical ones. The published estimates of the physical-qubit cost have dropped sharply:

EstimatePhysical qubitsTimeWhat it assumes
Gidney and Ekera, 2019about 20 million8 hoursNoisy qubits, surface-code error correction
Gidney, May 2025under 1 millionunder a week0.1% gate error, 1 microsecond cycle, a 2D grid with nearest-neighbour links
Iceberg Quantum, February 2026 (preprint)under 100,000about a month, in the paper's exampleThe same error rate and cycle time, with quantum LDPC error-correcting codes

Compare those with what exists. Google's Willow chip, announced in December 2024, has 105 qubits, and it showed error correction improving as the code grew, which researchers call operating below threshold. A 2025 review of factoring on quantum computers found that experiments using Shor's algorithm had only factored very small integers, up to 35, and cautioned that some of those experiments rely on oversimplified circuits.

Two cautions apply when you read these numbers. The estimates assume hardware qualities, such as a 0.1% error rate and a one-microsecond error-correction cycle, that no large machine has shown yet. And the 2026 figure comes from a preprint that has not been peer reviewed and cannot be compared directly with the others. What the trend does show is that most of the improvement came from better algorithms and error-correcting codes, not from new hardware, which is exactly why planners do not treat today's qubit counts as a safe margin.

Is RSA-2048 safe today?

Against any machine that exists, yes. Against an attacker who is patient, it depends on how long your data needs to stay secret. NIST's transition report describes the threat as "harvest now, decrypt later": an adversary records encrypted traffic today and decrypts it when a capable quantum computer appears. Anything that must stay confidential for ten or twenty years, such as medical records, state secrets or long-lived business data, is already exposed if it travels under a quantum-vulnerable key exchange.

Signatures are different. Forging an RSA signature needs the quantum computer to exist at the moment of forging, so there is nothing to harvest in advance. The urgency is lower, but the migration is slow, because certificates, firmware images and root keys live for years and are hard to replace.

Timeline, 2024 to 2036: NIST standards, the NSA warning, US deadlines in 2030 and 2031, RSA disallowed after 2035
The published dates for retiring RSA, from the 2024 standards to the 2035 cut-off.

The dates come from NIST's final transition report, published in October 2026. For RSA, ECDSA, EdDSA and the classic Diffie-Hellman key-exchange schemes, NIST will deprecate them after 2030 and disallow them after 2035. A US executive order and the White House budget office's memo M-26-15 are stricter for the government's most sensitive systems: post-quantum key establishment by 31 December 2030 and post-quantum signatures by 31 December 2031. A separate executive order and the same memo also require US agencies to support TLS 1.3 by 2 January 2030. In the UK, the BBC reports that guidance from the National Cyber Security Centre gives organisations until 2031 to finish the most urgent steps.

These are US and UK government dates, but vendors of operating systems, browsers and cloud platforms follow them, so they shape what your own stack supports.

What is post-quantum cryptography?

Post-quantum cryptography means algorithms that run on ordinary computers but are believed to resist both classical and quantum attacks. It is not quantum cryptography, which uses quantum hardware. NIST published its first three standards in August 2024:

  • ML-KEM (FIPS 203) is a key-encapsulation mechanism for establishing a shared secret. It comes from the CRYSTALS-Kyber design.
  • ML-DSA (FIPS 204) is a digital signature scheme, from CRYSTALS-Dilithium.
  • SLH-DSA (FIPS 205) is a signature scheme built only from hash functions, from SPHINCS+.

Two more are still in progress. FN-DSA, based on Falcon, is a compact lattice signature scheme, and HQC, selected in March 2025, is a code-based key-encapsulation backup that uses different mathematics from ML-KEM. NIST's final transition report names ML-KEM as the only approved post-quantum key-establishment scheme for now and recommends the ML-KEM-768 parameter set as the default.

ML-KEM and ML-DSA are built on module lattices. The core problem, learning with errors, is to recover a secret vector from many noisy linear equations. Without the noise it is routine linear algebra, and with the noise no efficient classical or quantum method is publicly known for the parameters in the standards. SLH-DSA uses a completely different foundation, the security of hash functions, which is why it exists: if lattices ever weaken, a second family is ready.

The price is size. Post-quantum keys and signatures are much larger than the ones they replace:

SchemePublic keySignature or ciphertext
X25519 (key exchange)32 bytes32 bytes (the peer's key share)
ML-KEM-768 (key exchange)1,184 bytes1,088 bytes
RSA-2048 (signature)256 bytes256 bytes
Ed25519 (signature)32 bytes64 bytes
ML-DSA-44 (signature)1,312 bytes2,420 bytes
ML-DSA-65 (signature)1,952 bytes3,309 bytes
SLH-DSA-SHA2-128s (signature)32 bytes7,856 bytes

A TLS handshake carries several signatures and public keys in its certificate chain, so swapping them all for post-quantum versions adds kilobytes. That, more than the mathematics, is why signature migration is the harder half.

How does hybrid post-quantum TLS work?

The cheap win is the key exchange, because that is what protects traffic from being harvested. Browsers and servers now run a hybrid exchange named X25519MLKEM768: the client sends both an X25519 key and an ML-KEM-768 key in the same handshake, the server answers with both, and the two resulting secrets are combined into one session key.

Hybrid TLS 1.3 handshake: X25519 and ML-KEM-768 key shares are exchanged and both secrets feed one session key
A hybrid handshake: an attacker has to break both key exchanges to recover the session key.

The point of combining them is risk management. X25519 has decades of scrutiny but falls to a large quantum computer. ML-KEM resists quantum attack but has a shorter track record. Breaking the connection requires breaking both. NIST's transition report allows this approach as long as at least one component is an approved scheme.

Adoption of the key exchange is already wide. Cloudflare reported in April 2026 that over 65% of human traffic to its network was post-quantum encrypted. The servers behind it lag badly: in February 2026 only about 10% of the origin servers Cloudflare connects to supported a post-quantum key agreement. Messaging moved earlier: Signal added a hybrid X25519 and Kyber step in 2023 and Apple's iMessage added its PQ3 protocol in 2024, and OpenSSH now defaults to a hybrid ML-KEM key exchange. The certificates that authenticate all of these connections are still RSA or ECDSA, which is the part that remains to be done.

What happened between 30 November and 2 December 2026?

Several things landed within days of each other, and they are easy to blur together. Here is the reporting, kept separate.

The research. On 30 November, Anthropic published four theoretical papers about lattice problems. The headline result is a quantum algorithm that runs in what researchers call quasi-polynomial time for certain module-lattice problems, found by an internal Anthropic research AI model, according to the project's public repository. A review group called the Cryptography Incident Review Group published an initial assessment the same day. It says the speedup is asymptotic and that ML-KEM and ML-DSA hold the ring degree fixed at 256 and gain security by raising the module rank, so the attack falls far short of threatening the current standards. It also says no improvement in classical attacks on mainstream lattice systems was found, and that the attack may well be improved in the near future. Anthropic reportedly lowered its long-term confidence in structured lattices while saying the results have no practical consequence for today's systems.

What it does not touch. NPR reports that the findings concern lattice-based encryption and not RSA. RSA's risk is the ordinary Shor risk described above, which is why one industry chief executive quoted by MIT Technology Review pointed out that the real and immediate quantum risk remains with RSA and elliptic curves.

The government warning. On 2 December the NSA advised owners, operators and vendors of national security systems to immediately accelerate their move to post-quantum cryptography, according to The Record and the Council on Foreign Relations. The NSA said leading AI companies had engaged the government to responsibly disclose recent discoveries, without saying what they were, and The Record notes it is unclear whether that refers to the Anthropic papers. A joint statement from the NSA, CISA and the White House cyber director said the advances do not present an immediate and widespread threat. The guidance leaves the lattice standards unchanged, and The Record reports it suggests 3,072-bit RSA as a stopgap for systems that cannot move yet.

The industry statement. Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI and Oracle said they strongly support the guidance and urged organisations to migrate to NIST's post-quantum standards as soon as possible. Anthropic is both the author of the research and one of the signatories. The BBC reports that the UK government said there was no imminent risk, and that a former head of the NCSC pointed out that the UK's existing guidance, with deadlines up to 2031, had not changed.

What to take from it. Two things are well supported. RSA and elliptic-curve cryptography remain the clearest quantum risk. And the advice from every source, from the NSA to the outside review group, is the same: keep migrating, use hybrids that combine different mathematical foundations, pick the highest security level you can afford, and build systems that can swap algorithms. What the "recent discoveries" the NSA refers to actually are has not been made public, so claims beyond what these sources say are speculation.

Should you switch to RSA-3072 or RSA-4096?

A larger key helps against classical attacks but buys very little against Shor's algorithm, because the cost of the quantum attack grows only polynomially with the key length. Doubling the key size does not double the qubits needed, and it certainly does not put the attack out of reach. The NSA's reported suggestion of 3,072-bit RSA is a stopgap for systems that cannot yet change algorithm, not a fix. The real fix is moving to ML-KEM for key exchange and ML-DSA or SLH-DSA for signatures.

What should a developer or team do now?

  1. Inventory your public-key cryptography. List every TLS endpoint, certificate authority, SSH key, VPN, code-signing key, JWT or OAuth signing key, and any database or backup key wrapped with RSA. You cannot migrate what you have not found.
  2. Rank by secrecy lifetime and update difficulty. Data that must stay secret for a decade, and systems that are hard to patch such as embedded devices and hardware modules, go first.
  3. Turn on hybrid key exchange where your stack has it. Recent OpenSSL (3.5 and later), Go (1.24 and later) and OpenSSH releases include ML-KEM, and major browsers already negotiate it. Check your load balancer, CDN and proxies, because one old hop can block the upgrade.
  4. Use TLS 1.3 everywhere. The US government's own timeline requires it by 2030, and the post-quantum key exchange rides on it.
  5. Make algorithms swappable. Do not hard-code RSA or a key size. Keep algorithm identifiers in your data formats, and plan for keys and signatures that are many times larger, as the table above shows.
  6. Use library implementations and hybrids. Never write your own cryptography, and prefer a hybrid to a post-quantum-only exchange while the new algorithms are young.
  7. Watch the standards. FN-DSA and HQC are still being finalised, and NIST says it will revise its transition guidance as they land.

The computer science underneath

  • Number theory: RSA works because of modular exponentiation and Euler's theorem, and pow(a, b, n) runs in time linear in the bits of b by repeated squaring, which is why decryption is fast.
  • Complexity: Factoring is not known to be in P, but it is in BQP, the class of problems a quantum computer solves efficiently. That is a statement about this one problem, not about quantum computers solving everything.
  • Key encapsulation: A KEM generates a fresh secret and encrypts it to a public key in one step. It is a different interface from Diffie-Hellman, where both sides contribute a key share, though in TLS the two sit in the same message slot.
  • Lattices: Learning with errors hides a secret vector under noise. The worst-case hardness of lattice problems underlies ML-KEM and ML-DSA, and the open question is how structured, module lattices differ from unstructured ones.
  • Hash-based signatures: SLH-DSA needs nothing beyond a secure hash function, which makes its assumptions the most conservative of the three.

What an interviewer could ask from this

Why does Shor's algorithm threaten RSA and elliptic curves but not AES? Shor turns factoring and discrete logarithms into period finding, which a quantum computer does in polynomial time. AES has no such structure to exploit, and Grover's search gives only a quadratic speedup, which doubling the key length offsets.

What is "harvest now, decrypt later", and who should worry about it? An attacker stores encrypted traffic today and decrypts it once a quantum computer exists. It matters for data that must stay secret for many years, which is why key exchange is migrated before signatures.

What is a KEM, and how does it differ from Diffie-Hellman? A key-encapsulation mechanism lets one side generate a shared secret and encrypt it to the other's public key. The receiver decapsulates it with the private key. Diffie-Hellman has both parties contribute key shares and derive the secret together.

Why use a hybrid key exchange instead of switching straight to ML-KEM? Because new algorithms have had less scrutiny. A hybrid forces an attacker to break both X25519 and ML-KEM, so a flaw in either one alone does not expose the session.

Why are post-quantum signatures harder to deploy than key exchange? They are larger, a certificate chain carries several, and the keys live in roots, firmware and hardware that change slowly. There is also less urgency, since signatures cannot be harvested in advance.

Does a bigger RSA key fix the quantum problem? No. Shor's cost grows polynomially with the key length, so a bigger key only raises the price slightly. The fix is a different algorithm.

Takeaways

  • No quantum computer can break RSA-2048 today. The gap between about 105 qubits built and the tens or hundreds of thousands the estimates need is still large.
  • The estimates have fallen by about twentyfold since 2019, mostly through better algorithms, so plan for the attack to arrive before you feel ready.
  • Harvest now, decrypt later makes key exchange urgent. Signatures matter too, but they are slower to move and cannot be harvested.
  • NIST will deprecate RSA after 2030 and disallow it after 2035. US federal deadlines for the most sensitive systems are the end of 2030 for key establishment and the end of 2031 for signatures.
  • ML-KEM, ML-DSA and SLH-DSA are the approved replacements, and hybrid key exchange is already carrying most browser traffic to large CDNs.
  • The December 2026 lattice research and NSA warning do not change the advice: keep migrating, use hybrids, and stay able to change algorithms.

Sources

  1. NIST IR 8547: Transition to Post-Quantum Cryptography Standards (final, October 2026)
  2. NIST FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard (ML-KEM)
  3. NIST FIPS 204: Module-Lattice-Based Digital Signature Standard (ML-DSA)
  4. NIST FIPS 205: Stateless Hash-Based Digital Signature Standard (SLH-DSA)
  5. NIST: Post-Quantum Cryptography project
  6. Peter Shor: Algorithms for quantum computation, discrete logarithms and factoring
  7. Craig Gidney: How to factor 2048 bit RSA integers with less than a million noisy qubits (2025)
  8. Webster et al.: The Pinnacle Architecture, reducing the cost of breaking RSA-2048 (preprint, 2026)
  9. Willsch et al.: The State of Factoring on Quantum Computers
  10. Google: Meet Willow, our state-of-the-art quantum chip
  11. Cloudflare: Post-quantum roadmap (April 2026)
  12. Cloudflare: Radar origin post-quantum support, key transparency and ASPA (February 2026)
  13. Signal: Quantum Resistance and the Signal Protocol (PQXDH)
  14. Apple Security Research: iMessage with PQ3
  15. OpenSSH release notes
  16. RFC 8017: PKCS #1, RSA Cryptography Specifications Version 2.2
  17. RFC 8446: The Transport Layer Security (TLS) Protocol Version 1.3
  18. Cryptography Incident Review Group: Initial assessment of Anthropic's findings on lattice cryptography
  19. Anthropic: lattice research artifact and paper list (GitHub)
  20. NPR: Anthropic has found a theoretical way to crack advanced encryption
  21. MIT Technology Review: Anthropic's cryptography breakthrough is kind of fine, actually
  22. The Record: Feds say AI firms disclosed recent discoveries on cryptography
  23. Council on Foreign Relations: What the NSA's post-quantum encryption warning really means
  24. BBC News: Tech companies issue urgent call for advanced security over AI threat

Written by the Codevizag Academy team

An independent explainer built from the public sources listed above. Codevizag Academy is not affiliated with NIST. Found a mistake? Write to support@codevizag.com.

More case studies

Understood it? Now prove it.

The lessons behind this case study are free, and 20 problems a month are judged on real test cases at no cost.

Start solving free