Definition
Diffie-Hellman Key Exchange
The Diffie-Hellman key exchange is a key exchange algorithm for two parties to agree on a shared secret key over an insecure channel. Its security relies on the hardness of the discrete logarithm problem.
Protocol
Let
-
Alice chooses a secret
and sends to Bob -
Bob chooses a secret
and sends to Alice -
Alice computes the shared secret
-
Bob computes the shared secret

Man-in-the-Middle Attack
