Respuesta :
Answer:
1) Public key of the receiver is (e, n) is (5, 21) Â and Private key of the receiver (d, n) Â is (5 , 21) ,
2) the encryption of a message whose integer equivalent is 12 is 3
3) Decryption of the message â P = C^d mod n Â
â P = 3â” mod 21
â P = 243 mod 21
â 12
Explanation:
Given that,
p = 3
q = 7
e = 5
1)
Now, n = pq = 3 Ă 7 = 21
Ă(n) = (p-1) Ă (q-1) Â = 2 Ă 6 = 12
Public key of the receiver is (e, n) is (5, 21)
and private key of the receiver is (d, n)
we have to find 'd' by using the expression
ed = 1 + kmodĂ(n)
d = 1 + kmodĂ(n) / e
now to get 'd' , we need to choose the least positive integer 'k', by substituting different values of âkâ from 0,
so for k =0 , d = (1+0) / 5 = 0.2 not an integer.
for k =1 , d = (1+12) / 5 = 13/5 = 2.6 not an integer.
for k =2 , d = (1+24) / 5 = 5 , now 5 is an integer
So k = 2 and d = 5
Private key of the receiver (d, n) Â is (5 , 21)
2)
Now the encryption of a message whose integer equivalent is 12?
Encryption of the message â C = P^e mod n
â C = 12â” mod 21
â 248832 mod 21
â 3
3)
Also the decryption gives back the message 12.
Decryption of the message â P = C^d mod n
â P = 3â” mod 21
â P = 243 mod 21
â 12