Professional Documents
Culture Documents
Here is an example of the RSA scheme in action. I have chosen primes that are large
enough to be interesting but small enough that you can do all of the arithmetic with a
pen, paper and calculator.
Key Generation
1. p = 31 q = 23 (chosen at random)
2. n = 31*23 = 713
3. r = 30*22 = 660
4. e = 223 (chosen at random)
5. d = 367 (computed using Euclids algorithm as below)
Encryption
Decryption