Week 2 - Diffie-Hellman Key Exchange Flashcards
1
Q
What is the purpose of Diffe-Hellman Key exchange?
A
to generate a shared key over an insecure network allowing future secure communication
2
Q
How does Diffie-Hellman Key work?
A
- a large prime number p and a base g are agreed
- Alice and Bob each have a private key
- A = g^a mod p
B = g^b mod p - Alice send A to bob and Bob sends B to Alice
- Alice secret key = B^a mod p
Bob secret Key = A^b mod p - Alice key == Bob key
3
Q
Why is the Diffie-Hellman key exchange secure against attackers?
A
Attacker needs a or b to solve for the key, but these are private