Chapter 3_AsymmetricEncryption
Chapter 3_AsymmetricEncryption
Asymmetric
Encryption
DR. NILESH PATIL
5. For encryption, calculate the cipher text CT from the plain text PT as follows
CT = PTE mod N
2. Calculate N = P * Q
◦ N= 7 * 17= 119
3. Select the public key E such that it is not a factor of (P-1) * (Q-1)
◦ Lets find (7-1) * (17-1)= 6*16= 96
◦ The factors of 96 are 2,2,2,2,2 and 3 ( because 96 = 2*2*2*2*2*3)
◦ Thus we have to choose E such that none of the factors of E is 2 and 3
◦ Lets choose E as 5
7. For decryption, calculate the plain text PT from the cipher text CT
as follows
PT = CTD mod N
◦ PT = 4077 mod 119 = 10