RSA: frequently asked questions
Short answers to the most common doubts about RSA, keys, security and quantum computers.
Is RSA still secure?
Yes, with keys of at least 2048 bits, modern padding and correct implementations. The long-term risk comes from quantum computers.
What does a 2048-bit key mean?
That the modulus, the product of the two primes, is a number of 2048 binary digits, about 617 decimal digits.
Why is the public exponent almost always 65537?
It is prime, large enough to avoid some attacks on very small values, and has a binary form that makes calculations fast.
Are RSA and AES alternatives?
No, they work together. RSA, slow, protects the key or signs the hash; AES, fast, encrypts the data.
Who really invented RSA?
Rivest, Shamir and Adleman invented and published it in 1977. Clifford Cocks had described an equivalent in 1973 at GCHQ, but his work stayed secret until 1997.
Can a quantum computer already break RSA?
No. Existing quantum computers are very far from the size needed to factor 2048-bit keys, but the transition to post-quantum algorithms is already under way.
The pages of this topic
Back to the overviewRSA: how it works
Key generation, encryption, decryption and signing with RSA, explained step by step without complicated formulas.
RSA: history
From Diffie and Hellman’s 1976 revolution to the invention of RSA, from the patent to the discovery of the secret British precedent.
RSA: the maths
The formulas of RSA — modulus, Euler’s function, exponents, encryption and decryption — and the factoring problem on which security rests.
RSA: worked example
A complete RSA example with small numbers, from choosing the primes to encrypting and decrypting a number.
RSA: weaknesses and attacks
Known attacks on RSA: keys that are too short, faulty random numbers, vulnerable padding, timing attacks and the threat of quantum computers.
RSA today
Where RSA is still used — certificates, digital signatures, email and code — and why it is giving way to elliptic curves and post-quantum algorithms.
RSA: pitfalls to avoid
The most common mistakes developers and administrators make with RSA, from short keys to home-made implementations.