I am still studying for my crypto 101 and I have a problem with one exercise that I can't find where I'm wrong...
We have p=11
and q=19
(so n=p*q=209
) and e=17
. I need to encrypt m=5
with RSA system.
So: Crypt_Msg = me mod n = 517 mod 209 = 80
Ok... now I want to decrypt that value (Crypt_Msg=80
)...
First of all d = inverse(e, n) = inverse(17, 209) = 123
Decrypt_Msg = 80123 mod 209 = 49!!
What am I doing wrong?
Thanks!!