010010010010001111111001010101100000101110011101010001010101010110101110101110011101010001010101010111010100101000111010100010101010101110101001010101010010101011100111010100010100110011101010001010101110101101010101110101001010010101010111010100101010101001010010101010010010111001110101000101010101011101010010101001101100101101
Daniel Zhao / Analysis 2H
Alice
Bob
Eve
What's it used for? A lot.
Eve
plaintext
encryption function & key
ciphertext
decryption function & key
plaintext
Alice
Bob
One key is not enough.
That's why we all need two!
One is public
One is private
One of the most popular forms of public key cryptography
Hint: You would die first. De nada for the hint.
a mod m = r
m is called the modulus
r is the remainder of a ÷ m
a ≡ b (mod m)
if a and b have the same remainder when divided by m
(not the formal definition)
is the number of integers less than n that are coprime with n, where n is a positive integer
It's multiplicative:
And if p is prime:
Bob chooses two large primes p and q, and finds n = pq.
He calculates:
He selects e within 1 < e < φ(N)
He finds the modular inverse d of e using:
(N, e) is Bob's public key
(N, d) is Bob's private key
Alice
Bob
wants to send a message, m, to
Alice encrypts her message m by finding:
(N, e) is Bob's public key
(N, d) is Bob's private key
Alice sends her cryptotext c to Bob
Bob decrypts the message m by finding:
Alice
Bob
sends the encrypted message, c, to
(N, e) is Bob's public key
(N, d) is Bob's private key
Let's say Eve gets her hands on c and (N, e)
She needs (N, d) to decrypt c
(N, e) is Bob's public key
(N, d) is Bob's private key
To calculate d using , Eve needs to know the value of
And in order to find , she must use this equation and factor N into p and q, then find their totients, because N by itself is too large to calculate a totient:
So mwahaha, Eve cannot decrypt the message!
What if someone came along and said they could factor any large number ?
Then that invalidates the security of the entire RSA system!
Do you want to be able to log in to your email without fearing that your house is going to be robbed the next day?
I sure do.
010010010010001111111001010101100000101110011101010001010101010110101110101110011101010001010101010111010100101000111010100010101010101110101001010101010010101011100111010100010100110011101010001010101110101101010101110101001010010101010111010100101010101001010010101010010010111001110101000101010101011101010010101001101100101101