110 likes | 309 Views
Public Key (RSA). Day 27. Objective. Students will be able to… …understand how RSA is used for encryption and decryption. …understand some of the challenges of implementing RSA. RSA. Named after Rivest, Shamir, and Adleman 1977 Patent in 1983 Patent expired in 2000
E N D
Public Key (RSA) Day 27
Objective Students will be able to… • …understand how RSA is used for encryption and decryption. • …understand some of the challenges of implementing RSA.
RSA • Named after Rivest, Shamir, and Adleman • 1977 • Patent in 1983 • Patent expired in 2000 • Clifford Cocks – discoved it in 1973, but this wasn’t released until 1997 (worked for Government Communications Headquarters (GCHQ)
RSA – Encryption/Decryption • C = Pemod n (Encryption) • P = Cd mod n (Decryption) • e and n are keys to the cipher. • n = pq (where p and q are large primes) • ed = 1 mod φ(n) (Used for finding d) • ed mod (p – 1)(q – 1) = 1
RSA – Encryption/Decryption • Selecting d • Must be between min(p, q) and (p – 1)(q – 1) • Must be relatively prime to (p – 1)(q – 1)
RSA Encryption Example • Select to primes, 11 and 23 • Let d = 19 • Find e. • Encrypt the message, “Hi”
RSA Encryption Example • Select to primes, 11 and 23 • Let d = 19 • Find e. • Decrypt the previous cipher text.