Editor's note, 4 December 2026: On 2 December, Amazon, Anthropic, Apple, Cloudflare, Google, Meta, Microsoft, OpenAI and Oracle published a joint statement supporting US government guidance to move to the NIST post-quantum standards and to accelerate the migration as soon as possible. That does not mean RSA-2048 has been publicly broken. It does make an existing job more urgent for teams that hold long-lived sensitive data, run their own authentication or depend on vendors' cryptography. This field guide shows where RSA appears in a typical application estate, which changes a team controls and how to stage the migration.
The short version: No one has publicly broken RSA-2048, with AI or anything else. The established threat is a quantum computer, and it breaks elliptic-curve crypto too. Move key exchange to hybrid ML-KEM first, because recorded traffic can be decrypted later. Move signatures to ML-DSA once your libraries support it. Start with an inventory.
Last updated: 4 December 2026.
Teams asking "how do we replace RSA?" usually expect a one-line algorithm swap. It isn't. RSA turns up across web apps, mobile backends, PHP admin panels, edge workers and Python cron jobs on a fleet of Linux servers. This guide maps where it usually sits in a multi-app estate, and it applies to any company that has shipped software for a few years.
Is AI a threat to RSA encryption?
Not on any public evidence. No practical break of RSA-2048 has been demonstrated, by AI or by any other method: factoring a 2048-bit number is infeasible for classical computers, and a better language model does not change that arithmetic. AI can still speed up research, so treat every timeline as an estimate. The established threat is quantum hardware. Shor's algorithm factors large numbers efficiently on a fault-tolerant quantum computer, and it breaks elliptic-curve cryptography (ECDSA, Ed25519, X25519) the same way.
What has changed is the estimate. In May 2025 Craig Gidney of Google Quantum AI estimated RSA-2048 could be factored in under a week with fewer than one million noisy qubits, down from the 2019 estimate of about 20 million that he co-authored. Nobody has that machine yet, but the target keeps moving closer.
What are the alternatives to RSA?
NIST finalised three post-quantum standards on 13 August 2024. One replaces RSA's encryption and key-exchange role; two replace its signature role.
| Job RSA does today | Post-quantum replacement | Standard | Size cost vs RSA-2048 |
|---|---|---|---|
| Key exchange, encryption (TLS, SSH sessions, sealed data) | ML-KEM-768, usually hybrid with X25519 | FIPS 203 | 1,184-byte public key, 1,088-byte ciphertext |
| Signatures (JWTs, certificates, SSH keys, code signing) | ML-DSA-44 or ML-DSA-65 | FIPS 204 | ML-DSA-44 signature 2,420 bytes vs 256 |
| Signatures where you want minimal maths assumptions | SLH-DSA (hash-based) | FIPS 205 | Signatures of about 8 KB and up, slow to sign |
| Classical upgrade only, not quantum-safe | Ed25519, ECDSA P-256 | FIPS 186-5 | Smaller and faster than RSA |
The last row matters. Plenty of teams "replace RSA" with Ed25519 and think the job is done. It is a good hygiene step and buys nothing against a quantum computer.
Where does RSA hide in a typical multi-app estate?
Search every repository, config directory and key store for RSA keys, RS256 tokens, openssl signing calls and PEM files, and RSA usually turns up in six kinds of place.
| Where | What RSA is doing | Who controls the algorithm |
|---|---|---|
| Login tokens in web and mobile backends | RS256 JWTs signed by the backend, verified by the frontend with the public key | The system owner |
| Cloud API calls (Google Sheets, Firebase, Cloud Storage) | RS256 assertions signed with a stored service account key | The cloud provider |
| Server-side jobs using workload identity federation | RS256 token signed with the job's own key, exchanged for short-lived cloud credentials | The system owner |
| Verifying a zero-trust proxy's tokens | Checking RS256 tokens against the vendor's published keys | The vendor |
| Payment and banking APIs | RSA encryption of API credentials with the provider's certificate | The provider |
| SSH access to servers | Older RSA login keys, often next to newer ed25519 keys | The system owner |
The table's last column is the real finding. In half of them somebody else chooses the algorithm, so "replacing RSA" there means changing how you connect, or waiting for the vendor. Any migration plan that ignores this column overstates what a team can do alone.
Want this table filled in for your own applications? Request a Post-Quantum Readiness Assessment: we inventory every RSA and ECC use, record who controls each one and rank them by risk. See what the assessment covers on our post-quantum cryptography migration page.
What does a quantum computer actually put at risk?
Encryption and signatures fail in different ways, so they get different deadlines.
Key exchange is at risk today. Under "harvest now, decrypt later", an attacker records TLS or SSH traffic now and decrypts it once a quantum computer exists. Customer records, health data and contracts sent today may still be sensitive in 2035.
Signatures are at risk only once the machine exists. A forged signature has to be made live. A JWT that expires in 15 minutes, signed today, cannot be forged in 2035 in any way that matters. Long-lived signatures are the exception: firmware, root certificates and signed documents.
In a typical web and mobile estate almost every RSA use is a short-lived signature. That puts it in the lower-risk group, and it moves TLS and SSH to the top of the list even though neither is on the "RSA inventory" most teams expect.
In what order should you replace RSA?
We use a four-stage model: Protect the pipes, Rotate the keys, Make it swappable, Migrate the signatures.
| Stage | What to do | Why this order |
|---|---|---|
| 1. Protect the pipes | Turn on hybrid ML-KEM for TLS and SSH | Stops harvest-now-decrypt-later; often just a version upgrade |
| 2. Rotate the keys | Replace RSA SSH login keys with ed25519; remove stored vendor keys where you can | Shrinks the inventory and the number of long-lived secrets |
| 3. Make it swappable | Add key IDs (kid), publish keys as JWKS, read the algorithm from config | Later algorithm changes become a key rollover, not a code change |
| 4. Migrate the signatures | Move JWTs and internal signing to ML-DSA as libraries support it | Lowest urgency for short-lived tokens; standards still settling |
Stage 1: How do you protect TLS and SSH?
Mostly by upgrading. OpenSSL 3.5 (April 2025) added ML-KEM, ML-DSA and SLH-DSA and changed the default TLS key shares to offer X25519MLKEM768. OpenSSH 10.0 made the hybrid mlkem768x25519-sha256 key exchange the default, after OpenSSH 9.9 introduced it. Check the OpenSSL version your web servers link against and the OpenSSH version on both client and server. A hybrid stays as strong as X25519 even if a flaw is found in ML-KEM.
To see where your own site stands, run its domain through the checker below. It tests TLS 1.3 and hybrid ML-KEM key exchange the way a browser would.
Free tool · Public endpoint check
Does your website use post-quantum key exchange?
Connects to the domain on port 443 the way a browser does and reports what its TLS handshake shows.
Stage 2: What about keys a vendor makes you use?
Remove them rather than wait. Google service account keys are RSA, but a job can instead sign a short token with its own key and swap it for Google credentials through Workload Identity Federation, so no long-lived Google key sits on the server. Payment and banking APIs that mandate RSA encryption of credentials are out of your hands; keep those calls inside TLS and track the provider's roadmap.
Stage 3: Why does crypto agility matter more than the algorithm?
The backends that will migrate easily are the ones that already pick a verification key by kid from a JWKS endpoint. Rolling out a new algorithm is then a new key in the set, with the old one kept until its tokens expire. The apps that read one fixed JWT_PUBLIC_KEY from an environment variable need code changes on both sides at once. Fix that now, while the algorithm is still RS256.
Stage 4: When should JWTs move to ML-DSA?
When your JWT libraries ship it in a stable release and the IETF JOSE registration is final. Plan for size: an ML-DSA-44 signature alone is about 3.2 KB once base64url-encoded, so a token can outgrow the roughly 4 KB browser cookie limit. Put session tokens in headers, or keep them as short opaque IDs in the cookie and the signed token on the server.
What does a migration plan include?
- Inventory: every RSA key, certificate,
RS256reference and signing call, with owner and who controls the algorithm. - Risk ranking: data that must stay secret for years first; short-lived signatures last.
- Quick wins: OpenSSL and OpenSSH upgrades, ed25519 SSH keys, removing stored vendor keys.
- Agility changes:
kidand JWKS in every auth service. - Vendor list: which providers still force RSA, and the date of their post-quantum plans.
- Timeline: mapped to the NCSC milestones (2028 discovery, 2031 high-priority systems, 2035 complete) and NIST's final IR 8547 (October 2026), which deprecates quantum-vulnerable public-key algorithms after 2030 and disallows them after 2035. US federal high-value systems have earlier deadlines: post-quantum key establishment by the end of 2030 and signatures by the end of 2031.
Why choose FNA for post-quantum readiness?
Post-quantum readiness is engineering and maintenance work, not a separate product, so we build it into the services we already deliver. We build and maintain the kinds of systems where RSA hides: Node.js and NestJS backends, Next.js frontends, PHP admin panels, mobile app backends and the Linux servers they run on.
How it fits into our work:
- Support and maintenance. Our support and maintenance team keeps runtimes, OpenSSL, OpenSSH and libraries current, which covers stage 1, and adds an RSA inventory and vendor tracking to the plan.
- Custom software development. Our custom software development team makes auth keys swappable with
kidand JWKS, replaces stored vendor keys with workload identity federation, and moves signatures to ML-DSA when your libraries support it. - New builds. Systems we build from scratch start with hybrid TLS, ed25519 SSH keys and rotatable token keys.
Need a scoped inventory of RSA, ECC and vendor crypto dependencies across your applications? Request a Post-Quantum Readiness Assessment, or see how we run the assessment, pilot and migration on our post-quantum cryptography migration services page.
Frequently Asked Questions
Not on any public evidence. No AI method has been shown to factor RSA-2048, and a better language model does not change the arithmetic RSA relies on. The established threat is a large quantum computer running Shor's algorithm, which breaks RSA and elliptic-curve cryptography alike. AI can speed up research, including quantum and cryptanalysis research, so treat migration timelines as estimates that can move.
For key exchange and encryption, ML-KEM (NIST FIPS 203), usually run as a hybrid with X25519. For digital signatures, ML-DSA (FIPS 204), with SLH-DSA (FIPS 205) as a conservative backup. NIST published all three as final standards on 13 August 2024.
No. Shor's algorithm breaks elliptic-curve cryptography as well as RSA, so moving from RSA to Ed25519 or ECDSA gives smaller keys and faster signing but no protection against a quantum computer. It is still a sensible step for SSH keys today.
NIST IR 8547, published in final form in October 2026, deprecates quantum-vulnerable public-key algorithms, including RSA, ECDSA and EdDSA, after 2030 and disallows them under NIST standards after 2035. US federal high-value and high-impact systems must move sooner: post-quantum key establishment by 31 December 2030 and signatures by 31 December 2031. The UK NCSC sets 2028 for discovery and planning, 2031 for high-priority systems and 2035 to complete migration.
An attacker records encrypted traffic today and stores it until a quantum computer can break the key exchange that protected it. It only threatens data that must stay secret for years, which is why key exchange should move to post-quantum algorithms before signatures do.
