Assignment 11 - RSA
Assignment 11 - RSA
exercise by yourself
RSA algorithm
1)
2)
3)
4)
or
1)
Exercise:
1)
2)
3)
4)
Choose p = 7 and q = 11
Compute n = p * q = _________________
Compute (n) = (p - 1) * (q - 1) = __________________
Choose e such that 1 < e < (n) and e and (n) are co-prime. Let e =
___________
5) Compute a value for d such that (d * e) % (n) = 1. One solution is d =
_______
You choose the value of d, such (d * e) % (n) = 1. (Note, in the formal the
% means mod, you can find it on the calculator. )
The plaintext M = 7
The process of encryption:
The cipher text C = Me (mod n) = _____________________
The process of decryption:
Cd (mod n) = ___________________ ====M