2,995 views
1 votes
1 votes
In a RSA cryptosystem , a participant uses two prime numbers p and Q is 17 and 11 respectively to generate his/her  public key and private keys. if the public key of participant is 7 and cipher text(C) is 11, then the original message (M) is______?

2 Answers

0 votes
0 votes

Public Key = (n, e)    e = 7 , p = 17  ,  q  = 11 
Private Key = (n, d)  
n = pq = 187

Φ(n) = (p-1)(q-1) so, Φ(n) = 160

d *e mod Φ(n) = 1

d = 23

cipher text , c = 11

Message ,  M = cd mod n

M = 1123 mod 187 = 149

0 votes
0 votes
In RSA we encrypt using public and decrypt using private key

phi = (p-1)(q-1) = 160

Public key = 7

calculate Private key(d) comes out to be 23

let original msg be 'm'

ciphertext be 'c'

c^d mod n = m  // as c = m^e mod n and by euler toitent we know m^ed mod n = m

c = 11, d = 23 and n = p*q calculate m !
edited by

Related questions

0 votes
0 votes
1 answer
2
2 votes
2 votes
1 answer
4