RSA Cryptography: Public Key Encryption Algorithm
RSA Cryptography: Public Key Encryption Algorithm
Cryptograp
hy
Public Key E
ncryption A
lgorithm
What is it?
1. RSA – Rivest, Shamir,
Adleman
0 Block B of text has been encoded by some function g into an integer T such that T
is an integer and 0 < T < n (Calculate n=pq, where n is the mod of p and q)
0 Compute the Euler phi function. φ(n) = (p – 1)(q – 1) because n is the product of
2 primes.
Decryption
Cipher Text : C
Plaintext : M = C d (mod n)
Example 1 Cont’d
Encrypt:
Plaintext : Let M = 8 < n
Cipher Text: C = M e (mod n) = 8 11 (mod 221)
= 83 * 83 * 83 * 82 mod 221
= 512 * 512 * 512 * 64 mod 221
=70 * 70 * 70 * 64 mod 221
= 4900 * 4480 mod 221
= 38 * 60 mod 221
= 2280 mod 221
= 70
Computational Aspects
0 Exponentiation in Modular Arithmetic:
[(a mod n) x (b mod n)]mod n = ( a x b ) mod n
X16 = X1 x X2 x X3 x … x X15