About RSA
Contents
RSA procedure
- choose two primes, and
- calculate
- calculate
- is the Eular function, represents the number of integers prime with
- if is a prime, then obviously
- choose no more than and prime with
- calculate such that
- then is public key and is private key
- don’t forget to destroy and
Now Alice wants to send some message to Bob.
She needs to transform the message string into a integer no more then .
- ciphertext
When Bob receive the ciphertext, he needs to decrypt it.
- plaintext
Rightness
How to show that Bob can get right raw message?
The key point is when
More
In fact, we can choose more than two primes at beginning.
For example, choose primes
calculate
and calculate
then everything is the same.
The difficulty to crack RSA decides to the difficulty to factoring a big intger.
The big intger is just and if we can factor it into some primes, then we can calculate , and get .