RSA is a public-key encryption system that relies on the extreme difficulty of factoring very large numbers. This guide covers how keys are generated, how messages are securely locked, and the mathematical intuition behind why it works.
(a) Key Generation
Select two primes, p=5 and q=11, then calculate n and the totient.
(b) Find Keys
Choose e=7, then find d such that 7d leaves a remainder of 1 when divided by 40.
(c) Encrypt
To encrypt message m=9, raise it to the power of 7 modulo 55.
(d) Decrypt
Raise the ciphertext 4 to the power of the private key 23 modulo 55 to recover the message.
Original question
Can you please explain RSA encryption for me
Ask me anything about this lesson. I'll answer using what we just covered.