What is RSA-2048?
Short answer
RSA-2048 is the RSA public-key algorithm used with a 2048-bit key. Its security rests on one hard problem: given a 617-digit number that is the product of two large primes, find those primes. No one has publicly done that for a 2048-bit key.
Reviewed Nov 30, 2026
RSA-2048 is the version of RSA most of the internet uses today. When people ask whether "2048-bit RSA has been cracked", this is the system they mean. For the latest status of the 2026 rumor, see has 2048-bit RSA been cracked.
How RSA works, in one paragraph
RSA was published in 1977 by Rivest, Shamir and Adleman. You pick two large secret prime numbers, p and q, and multiply them to get n. The number n goes into your public key along with a small public exponent (almost always 65537). Anyone can use the public key to encrypt a message to you or to verify your signature. Only someone who knows p and q can decrypt or sign. The "2048" is the length of n in bits.
Why 2048-bit RSA is hard to crack
Multiplying two primes is easy. Going backwards is not. A 2048-bit n is a 617-digit number, and the best known classical method for splitting it, the General Number Field Sieve, gets slower very quickly as numbers grow. For scale: the RSA-250 challenge number (829 bits) was factored in 2020 by an academic team using about 2,700 CPU core-years of computing. 2048 bits is far beyond that.
NIST rates RSA-2048 at about 112 bits of security, meaning breaking it should take roughly as much work as trying 2^112 keys. That is why it is still considered acceptable for current use.
There are two ways the picture could change:
- A better classical algorithm. A new mathematical idea that factors large numbers much faster. No such algorithm has been published.
- A large quantum computer. Shor's algorithm, published in 1994, factors numbers efficiently on a quantum computer with enough error-corrected qubits. No machine that large exists publicly today.
Harvest Now, Decrypt Later
Harvest Now, Decrypt Later is the reason people care about RSA before it is broken. An attacker records encrypted traffic today, stores it, and waits for the day the key exchange can be broken. Anything that still needs to be secret by then, such as medical records, trade secrets or diplomatic cables, would be exposed.
Two things limit this risk:
- Forward secrecy. Most modern TLS connections agree on a fresh session key using elliptic-curve Diffie-Hellman (ECDHE). The RSA certificate only signs the handshake. Breaking the certificate's RSA key later does not reveal old session keys.
- Post-quantum key exchange. Current Chrome and Firefox already use a hybrid of X25519 and ML-KEM (X25519MLKEM768) whenever the server supports it. It is designed to resist future quantum computers.
Old setups that used RSA key transport, where the browser encrypted the session key directly with the server's RSA key, have no forward secrecy. TLS 1.3 removed that mode entirely.
The 2048 bit RSA key: what it looks like
A 2048-bit RSA key pair has a public key you can share and a private key you must keep secret. You will most often see them in two formats.
An SSH public key is one line. It starts with the key type, then a long base64 string, then an optional comment:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ... user@laptop
A key or certificate in PEM format is a block of base64 between header lines:
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...
-----END PUBLIC KEY-----
The base64 text alone does not tell you the length reliably. Use one of the commands below.
How to check your key length
| What you have | Command | What to look for |
|---|---|---|
| SSH public key | ssh-keygen -l -f ~/.ssh/id_rsa.pub |
2048 SHA256:... (RSA) |
| PEM private key | openssl pkey -in key.pem -noout -text | head -1 |
Private-Key: (2048 bit, 2 primes) |
| Certificate file | openssl x509 -in cert.pem -noout -text | grep Public-Key |
Public-Key: (2048 bit) |
| A website | Click the padlock in your browser, open the certificate details | Public key algorithm and size |
If the SSH output ends in (ED25519) or (ECDSA), the key is not RSA at all.
How to generate a 2048-bit RSA key
Most new keys don't need to be RSA. For SSH, Ed25519 is shorter and faster. If a system requires RSA, these commands create a 2048-bit key:
# SSH key pair (ssh-keygen defaults to 3072 bits for RSA)
ssh-keygen -t rsa -b 2048
# PEM private key with OpenSSL
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:2048 -out key.pem
For a modern SSH key instead, run ssh-keygen -t ed25519.
Is RSA-2048 going away?
Yes, slowly and on a schedule. In a 2024 draft (NIST IR 8547), NIST proposed deprecating RSA-2048 and other 112-bit algorithms after 2030 and disallowing quantum-vulnerable public-key algorithms after 2035. That timeline was set because of quantum computers, not because of any current break. Meanwhile, most of what people protect day to day, such as crypto wallets and messaging apps, doesn't depend on RSA at all; see is Bitcoin safe if RSA is broken.
Common questions
What is 2048-bit RSA?
It is RSA with a 2048-bit modulus, the number made by multiplying two secret primes of about 1024 bits each. It is the most common RSA size for website certificates and many SSH keys.
How long would it take to crack a 2048-bit RSA key?
With known classical methods, far longer than is practical; NIST rates it at roughly 112 bits of security. For comparison, the RSA-250 challenge number (829 bits), factored in 2020, took about 2,700 CPU core-years. A large, error-corrected quantum computer running Shor's algorithm could do it much faster, but no such machine exists publicly.
Is RSA-2048 still safe to use?
There is no public evidence that RSA-2048 has been broken. NIST has proposed phasing it out over the next decade because of future quantum computers, so new systems increasingly pick elliptic-curve and post-quantum algorithms instead.
What is Harvest Now, Decrypt Later?
An attacker records encrypted traffic today and stores it, hoping to decrypt it years later once the underlying public-key algorithm can be broken, for example by a quantum computer. It matters most for secrets that must stay private for a long time.
Is 2048-bit RSA the same as 256-bit AES?
No. They are different kinds of algorithms and their key sizes are not comparable. RSA is public-key cryptography based on factoring; AES is a symmetric cipher. A 2048-bit RSA key gives roughly the strength of a 112-bit symmetric key.