3 tables about RSA cryptosystem
RSA Key Generation Example
5 rows × 1 cols · as of 30 November 2026
RSA key generation starts with two distinct primes, here 61 and 53, whose product forms the public modulus 3233. The Carmichael function of that product is 780.
A public exponent, 17, is chosen to be coprime to 780. Its modular inverse, 413, becomes the private exponent, completing this small illustrative key pair.
| Example |
|---|
| Choose two distinct prime numbers, such as p=61 and q=53. |
| Compute n = pq giving n=61×53=3233. |
| Compute the Carmichael's totient function of the product as λ(n) = lcm(p − 1, q − 1) giving λ(3233)=lcm(60,52)=780. |
| Choose any number 1 < e < 780 that is coprime to 780. Choosing a prime number for e leaves us only to check that e is not a divisor of 780. Let e=17. |
| Compute d, the modular multiplicative inverse of e (mod λ(n)), yieldingd=413, as 1=(17×413)mod780. |
Source: en.wikipedia.org/wiki/RSA_cryptosystem, shared under CC BY-SA 4.0.
Updates: Latest edits
More: Tables like this · Random tables
All tables from RSA cryptosystem
Attacks against plain RSA
Example
- RSA Key Generation Example