Professional Documents
Culture Documents
Diffie-Hellman Key Exchange EXAMPLE
Diffie-Hellman Key Exchange EXAMPLE
Diffie-Hellman Key Exchange EXAMPLE
2- Alice choose random value α < p. Suppose α = 8, and she will compute the
public Key:
A= g α mod p
A= g α mod p = 2 8 mod 11 = 3
3- BOB choose random value b < p. Suppose b = 6, and he will compute the
public key:
B= g b mod p
B= g b mod p = 2 6 mod 11 = 9
4- Alice will compute the shared secret key based on B received from BOB
S= B α mod p = 9 8 mod 11 = 3
5- BOB will compute the shared secret key based on A received from Alice
S= A b mod p = 3 6 mod 11 = 3
We can notice that 3 is the secret key computed between BOB and Alice
without sharing it through the Network.