Beyond RSA 2048, what comes next and what to do now
At the end of October 2026 NIST set the timeline for moving away from RSA, Diffie-Hellman and elliptic curves. It applies to every key length, so switching to RSA 4096 does not solve it. With examples you can try, we explain why a quantum computer breaks RSA, what replaces it and which part of the work is worth doing now.
The NIST timeline, deprecated after 2030 and disallowed after 2035

At the end of October 2026 NIST, the US body whose cryptographic standards are used across half the world, published the final version of its report IR 8547 on the transition to post-quantum cryptography. The report lists the public-key algorithms that a large enough quantum computer could break and sets the dates by which they must be dropped.
| Algorithm | Used for | After 2030 | After 2035 |
|---|---|---|---|
| RSA | Signatures and key exchange | Deprecated | Disallowed |
| ECDSA and EdDSA (Ed25519) | Signatures | Deprecated | Disallowed |
| Diffie-Hellman and ECDH | Key exchange | Deprecated | Disallowed |
For NIST a deprecated algorithm may still be used, but whoever uses it accepts a security risk. A disallowed algorithm can no longer be used to protect data in systems that follow its standards.
The 2024 draft deprecated only the shortest keys after 2030, those with 112 bits of security such as RSA 2048. In the final text the date applies to every vulnerable algorithm, whatever the key length. RSA 3072, RSA 4096, the P-256 curve and Ed25519 follow the same timeline as RSA 2048.
These deadlines bind US federal agencies, which have even tighter dates for their most critical systems (post-quantum key exchange by 31 December 2030, signatures by 31 December 2031). In practice, though, NIST standards end up in products, tenders and audits, and from there they reach everyone.
The report is about public keys. Symmetric cryptography stays where it is, and for AES, SHA-2 and SHA-3 NIST expects no transition.
How RSA works, with two small primes
RSA rests on an asymmetry. Multiplying two primes is instant, working back from the product to the two primes is hard. The public key holds the product, the private key comes from the two factors. Whoever can factor the product rebuilds the private key.
An example with numbers that fit on one line:
- 01
Pick two primes
I take 61 and 53 and multiply them. The product, 3233, is the main part of the public key, together with an exponent, here 17.
- 02
Compute the private key
Knowing 61 and 53 I derive the number 2753. Without the two factors this calculation cannot be done.
- 03
Encrypt
The message is the word HELLO. Each letter becomes a number, its code in the ASCII table (72, 69, 76, 76, 79). I raise each number to the power of 17 and keep the remainder of the division by 3233. I get 3000, 28, 2726, 2726 and 1307.
- 04
Decrypt
Whoever holds the private key raises each of the five numbers to the power of 2753, keeps the remainder of the division by 3233 and gets 72, 69, 76, 76 and 79 back, that is HELLO.
An attacker knows only 3233 and 17. They try dividing 3233 by 2, by 3, by 5 and so on, and at the twenty-seventh attempt they find 53. From there they recompute 2753 and read HELLO. Encrypting one letter at a time only serves to follow the arithmetic. In practice RSA encrypts a whole block, usually the key that protects the rest of the communication.
With real keys only the scale changes. A 2048-bit RSA modulus has 617 decimal digits, and no classical computer, with known algorithms, can factor it in any useful time.
Shor's algorithm looks for a rhythm, not for divisors
In 1994 Peter Shor showed that a quantum computer does not need to try divisors one by one. His algorithm turns factoring into a different problem, finding the period of a sequence.

To factor 15 I pick a base, say 7, and compute the remainder of its powers divided by 15. I get 1, 7, 4, 13, then again 1, 7, 4, 13. The sequence repeats every four steps, so the period is 4.
From the period to the factors it takes two calculations. I raise 7 to half the period and get 49, which divided by 15 leaves 4. The greatest common divisor of 3 and 15 is 3, that of 5 and 15 is 5. The two factors of 15 came out without trying a single division.
A classical computer has to walk the sequence step by step, and with 617-digit numbers the period is astronomical. A quantum computer computes all the values in superposition and uses interference to make the period emerge directly. The same method solves the discrete logarithm, which is why Diffie-Hellman and elliptic curves fall together with RSA.
Why a longer key is not enough
Against a classical attacker every step up in size buys security. The equivalences are in NIST's SP 800-57 recommendation.
| RSA key | Against a classical computer | Against Shor's algorithm |
|---|---|---|
| 2048 bits | 112 bits of security | Broken |
| 3072 bits | 128 bits of security | Broken |
| 7680 bits | 192 bits of security | Broken |
| 15360 bits | 256 bits of security | Broken |
Against Shor length matters little, because the cost of the attack grows slowly with key size, while the cost for whoever uses the key (slower signatures, heavier connections) grows fast. That is why NIST put every length on the same timeline.
How far away is the machine it takes? In 2019 the reference estimate was 20 million qubits to factor a 2048-bit RSA number in eight hours. In 2025 one of the two authors published a new estimate that drops below one million qubits, with less than a week of computation. These are theoretical estimates for hardware that does not yet exist at that scale, but in six years the finish line moved twenty times closer without anyone building anything.
Harvest now, decrypt later
You do not have to wait for the quantum computer to have a problem. Whoever intercepts encrypted traffic today can store it and decrypt it once they have the machine. This is known as harvest now, decrypt later.
To see whether it concerns you there is a rule set out by the cryptographer Michele Mosca. Add the years your data must stay secret to the years you need to migrate your systems. If the total exceeds the years left before a capable quantum computer, you are already late.

Medical records, contracts, financial data and mail archives have long lives. For this data the protection that matters is the key exchange of today's connection, because that is what defends the recorded session.
What replaces RSA
Post-quantum cryptography runs on today's computers. What changes is the underlying mathematical problem, chosen among those with no known shortcut, classical or quantum. In August 2024 NIST published the first three standards.
| Standard | Algorithm | Used for |
|---|---|---|
| FIPS 203 | ML-KEM (originally Kyber) | Key exchange. Replaces RSA and Diffie-Hellman when two parties agree on a secret |
| FIPS 204 | ML-DSA (originally Dilithium) | Digital signatures for certificates, code signing and authentication |
| FIPS 205 | SLH-DSA (originally SPHINCS+) | Signatures based only on hash functions. Bulkier, kept as the cautious alternative |
ML-KEM and ML-DSA are based on lattices, regular grids of points in spaces with hundreds of dimensions. The idea, much simplified, can be seen in two dimensions.

Two arrows are enough to generate every point of the grid. With short, nearly perpendicular arrows, finding the grid point closest to any given point is a quick calculation. With long, nearly parallel arrows, which describe the very same grid, the same task becomes intractable as soon as the dimensions go up. The private key is the information that makes the problem easy, the public key shows only its hard version.
The transition is hybrid, and for key exchange it has already started
The new algorithms have a few years of analysis behind them, RSA nearly fifty. That is why today they are used together with a classical one. The session key is derived from both, and to read it an attacker has to break both. In TLS 1.3 the scheme is called X25519MLKEM768, in SSH mlkem768x25519-sha256.
A good share of software already does it on its own:
- OpenSSL 3.5, released in April 2025, offers the hybrid exchange among its defaults;
- OpenSSH has used the hybrid exchange with ML-KEM as its default since version 10.0;
- according to Cloudflare, in February 2026 over 60% of browser traffic to its network was already protected this way, up from under 3% at the start of 2024.
Cloudflare has enabled the hybrid exchange on every domain it serves, including the one you are reading. What remains to check is the leg between Cloudflare and the origin server, and every server that does not sit behind a service of this kind.
The price is space. In the first message of the connection the client sends 1216 bytes instead of 32, which is bearable. Signatures are another story.
| Algorithm | Public key | Signature |
|---|---|---|
| Ed25519 | 32 bytes | 64 bytes |
| RSA 2048 | 256 bytes | 256 bytes |
| ML-DSA-44 | 1312 bytes | 2420 bytes |
| ML-DSA-65 | 1952 bytes | 3309 bytes |
| SLH-DSA-128s | 32 bytes | 7856 bytes |
A TLS connection carries several keys and several signatures at once. That is why post-quantum certificates are the slow part of the migration, and certificate authorities and browsers are still working out how to handle them.
What to do now, in order
- 01
Enable hybrid key exchange on web servers
This is the urgent part, because it protects against traffic recorded today. It needs OpenSSL 3.5 or later. Recent browsers already use it, older ones fall back to the classical exchange without errors.
- 02
Check SSH
With an up-to-date client and server there is nothing to configure. It is worth checking older servers and scripts that pin algorithms by hand.
- 03
Take an inventory
List where RSA and elliptic curves live (TLS certificates, VPNs, SSH keys, code signing, signed mail, encrypted backups, appliances whose firmware is never updated) and note for each how long it has to remain valid.
- 04
Prepare the ground for certificates
Post-quantum signatures in public certificates are not available yet. What you can do today is automate renewals, so that on the day of the switch it is a configuration change.
- 05
Ask your vendors for their plan
Firewalls, VPNs, business software and cloud services should have a date. If they do not, that is useful information for the next renewals.
With OpenSSL 3.5 nginx offers the hybrid exchange without touching anything. If the configuration pins the groups by hand with ssl_ecdh_curve, though, the hybrid one has to be added at the front.
ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1;To see what a server negotiates, ask OpenSSL to offer only the hybrid group. If the connection succeeds, the negotiated group appears among the lines of the reply.
openssl s_client -connect www.example.com:443 -groups X25519MLKEM768 </dev/null 2>/dev/null | grep -i "group"If you would rather not use the command line, the Post-Quantum page of Cloudflare Radar has a test for any site. For SSH just look at the algorithm chosen when the session opens. The expected answer is mlkem768x25519-sha256 or sntrup761x25519-sha512.
ssh -v user@server exit 2>&1 | grep "kex: algorithm"If you want an inventory of your systems or a check of your servers, write to us.
How we wrote this article
At Cloudfactory we also use artificial intelligence in our editorial work: it helps us find and cross-check sources, compare data, set up the structure and polish the language. The system we use is configured by us, with instructions, examples and procedures built around the way we write. Our team checked every source, corrected the text and approved the published version. The assessments and choices are Cloudfactory's, and we answer for them.
Frequently asked questions
Is RSA 2048 insecure today?
No. Against today's computers it holds. The risk concerns a future, large enough quantum computer, and data encrypted today that will still need to be secret when that machine exists.
Is switching to RSA 4096 enough?
No. Shor's algorithm breaks RSA at any length with a cost that grows slowly, and NIST's final timeline treats every length the same way.
Do I need to replace my certificates right away?
No. Public certificates with post-quantum signatures are not available yet. The part to do now is hybrid key exchange, which is enabled on the server without changing the certificate.
Does AES need to change too?
No. For AES, SHA-2 and SHA-3 NIST expects no transition. The work concerns public-key algorithms.
What does deprecated mean for NIST?
That the algorithm may still be used, but whoever uses it accepts a security risk. After 2035 the same algorithms are disallowed.
Do the NIST deadlines apply outside the United States?
They bind US federal agencies. In practice, though, NIST standards are the reference for products, libraries and audits used everywhere, so the dates arrive through vendors.
When will a quantum computer able to break RSA arrive?
Nobody knows. Estimates of the resources needed fell from 20 million qubits in 2019 to under one million in 2025, but a machine at that scale does not exist yet.
Sources
- NIST IR 8547, Transition to Post-Quantum Cryptography Standards (October 2026)
- NIST, announcement of the publication of IR 8547
- NIST IR 8547, initial public draft of November 2024
- NIST FIPS 203, Module-Lattice-Based Key-Encapsulation Mechanism Standard
- NIST FIPS 204, Module-Lattice-Based Digital Signature Standard
- NIST FIPS 205, Stateless Hash-Based Digital Signature Standard
- NIST SP 800-57 Part 1 Rev. 5, Recommendation for Key Management
- Peter Shor, Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer
- Craig Gidney, Martin Ekerå, How to factor 2048 bit RSA integers in 8 hours using 20 million noisy qubits
- Craig Gidney, How to factor 2048 bit RSA integers with less than a million noisy qubits
- Michele Mosca, Cybersecurity in an era with quantum computers: will we be ready?
- OpenSSL, version 3.5 announcement
- OpenSSH, release notes
- Cloudflare, Bringing more transparency to post-quantum usage, encrypted messaging, and routing security
- Cloudflare Radar, Post-Quantum Encryption