# RSA

> Public-key algorithm for encryption and digital signatures, first described in 1977, whose security rests on how hard it is to factor very large numbers.

- **Category**: Cybersecurity
- **URL**: https://www.romaindelfosse.fr/en/glossary/rsa/

---

**RSA** is a public-key cryptography algorithm used both to encrypt and to sign. It is named after its three authors, Ron Rivest, Adi Shamir and Leonard Adleman, who described it at MIT in April 1977. Nearly fifty years later, it still underpins a large share of digital certificates and signatures, and it is one of the first algorithms in the line of fire of quantum computing.

## How RSA works

### A public key and a private key

RSA relies on a key pair. The **public key** can be shared with anyone: it is used to encrypt a message or verify a signature. The **private key** stays secret: only it can decrypt or sign. A common analogy is a mailbox: the public key is the address anyone can look up, the private key is the key that only the owner holds.

### Factoring, the foundation of its security

At the heart of RSA is a large number, the **modulus**, obtained by multiplying two secret prime numbers. Multiplying is easy; recovering the two factors from the product is extremely hard when the number is large. RSA-2048 means a 2048-bit modulus, the product of two 1024-bit primes. The public record for classical factoring is 829 bits (RSA-250, in 2020), far below that size.

### Where you find it

RSA sits across much of the trust infrastructure: signatures on the certificates that secure websites (TLS), document, email and code signing, authentication in VPNs and SSH, smart cards and hardware tokens. Its role has shifted, though: TLS 1.3 removed static RSA key exchange, so RSA is mainly used there for signatures. Recommended variants have changed too: ANSSI accepts RSAES-OAEP for encryption and RSA-SSA-PSS for signatures, and warns against the older PKCS#1 v1.5 encoding in some contexts.

## Key sizes: what the authorities say

### NIST's timeline

The final version of NIST IR 8547, published in October 2026, sets out how quantum-vulnerable algorithms will be retired. RSA, ECDSA, EdDSA and Diffie-Hellman key exchange will be **deprecated after 2030**, meaning they can still be used while organizations migrate, then **disallowed after 2035** under NIST standards and guidelines. The most sensitive US federal systems face earlier deadlines.

### France's ANSSI

ANSSI's guide to choosing and sizing cryptographic mechanisms, updated in March 2026, sets two thresholds: a modulus of at least **2048 bits** for use until the end of 2030, then at least **3072 bits** from 2031. It recommends moving to 3072 bits now. It also states that RSA offers no post-quantum security, and recommends aiming for post-quantum security for any mechanism expected to be used beyond 1 January 2030.

## The quantum threat

### Shor's algorithm

In 1994, Peter Shor published an algorithm that can factor large numbers in polynomial time on a quantum computer. Against such a machine, a longer RSA key no longer helps: the underlying math problem stops being hard.

### A machine that does not exist yet, estimates that keep falling

No current quantum computer can break RSA-2048. Resource estimates, however, have dropped sharply: in 2019, Craig Gidney and Martin Ekerå put the requirement at 20 million noisy qubits for an eight-hour factorization; in 2025, Craig Gidney brought it down to fewer than one million qubits for a factorization in under a week, under the same hardware assumptions. That trend, together with the "harvest now, decrypt later" risk, is why cryptographic inventories and post-quantum migration should start now.


## Key Figures

- Largest RSA-type modulus publicly factored, on 28 February 2020 (RSA-250, 250 digits): far below the 2048 bits in use today *(ANSSI, &quot;Règles et recommandations concernant le choix et le dimensionnement des mécanismes cryptographiques&quot;, guide ANSSI-PG-083 v3.00, March 2026)*

- NIST will deprecate quantum-vulnerable public-key cryptography, RSA included, after 2030 and disallow it under its standards after 2035 *(NIST IR 8547, &quot;Transition to Post-Quantum Cryptography Standards&quot;, final version, October 2026)*

- Noisy physical qubits that would be enough, according to a 2025 estimate, to factor a 2048-bit RSA integer in less than a week (versus 20 million in the 2019 estimate) *(Craig Gidney, &quot;How to factor 2048 bit RSA integers with less than a million noisy qubits&quot;, arXiv, May 2025)*



## Frequently Asked Questions

### Has RSA-2048 been broken?

No. No public factorization of a 2048-bit RSA modulus has been demonstrated. The public record using classical methods is 829 bits (RSA-250, in 2020), and the effort grows very quickly with key size. The real threat is a quantum computer: Shor's algorithm, published in 1994, would factor RSA moduli in polynomial time on a large and reliable enough machine. A 2025 estimate puts the requirement at fewer than one million noisy physical qubits, a machine that does not exist today. For decision-makers, the point is timing: data encrypted today can be recorded now and decrypted later, which is why migration planning should not wait. The theoretical results published in late November 2026 on post-quantum cryptography change nothing for RSA: they concern the lattices behind ML-KEM and ML-DSA.

### What will replace RSA?

It depends on what RSA is used for. For key establishment, the reference standard is ML-KEM (FIPS 203), published by NIST in 2024. For signatures, it is ML-DSA (FIPS 204), with the hash-based SLH-DSA (FIPS 205) as an alternative. France's ANSSI advises against a straight swap: it recommends hybrid schemes that combine a well-studied classical mechanism with a post-quantum one, and considers ML-KEM used alone insufficient against classical attacks under its rules. In practice, RSA and post-quantum algorithms will run side by side in the same protocols for several years.

### What RSA key size should I use today?

ANSSI's guidance sets a minimum modulus of 2048 bits for use that does not extend beyond the end of 2030, and 3072 bits for use from 2031 onward. It recommends 3072 bits even now, a size that gives security of the same order as a 128-bit symmetric key. 1024-bit moduli, still found in some legacy systems, are considered an unreasonable risk. Under NIST IR 8547, RSA at every key size is deprecated after 2030 and disallowed after 2035. No key size protects against a quantum computer, so longer RSA keys are not a substitute for the post-quantum migration.



## Resources

- [Transition to Post-Quantum Cryptography Standards (NIST IR 8547)](https://nvlpubs.nist.gov/nistpubs/ir/2026/NIST.IR.8547.pdf?utm_source=romaindelfosse&amp;utm_medium=glossaire&amp;utm_campaign=rsa) — NIST

- [A Method for Obtaining Digital Signatures and Public-key Cryptosystems](https://dspace.mit.edu/handle/1721.1/148910?utm_source=romaindelfosse&amp;utm_medium=glossaire&amp;utm_campaign=rsa) — Rivest, Shamir, Adleman (MIT)

- [Règles et recommandations concernant le choix et le dimensionnement des mécanismes cryptographiques (in French)](https://messervices.cyber.gouv.fr/documents-guides/anssi-guide-mecanismes-crypto-3.00.pdf?utm_source=romaindelfosse&amp;utm_medium=glossaire&amp;utm_campaign=rsa) — ANSSI

