Diffie Hellman Key Exchange Algorithm
Diffie Hellman Key Exchange Algorithm
Algorithm
( Information Security )
Rajdeep S. Shaktwat
CIPHERS
Process defining ENCRYPTION and
DECRYPTION
STREAM CIPHER : BIT by BIT encryption and
decryption
BLOCK CIPHER : BLOCK by BLOCK
encryption and decryption
Two kinds of
Cryptography
SYMMETRIC
ASYMMETRIC
SYMMETRIC KEY
CRYPTOGRAPHY
ASYMMETRIC KEY
CRYPTOGRAPHY
MATRIX OF KEYS
KEY.
Algo is for key exchange not for Encryption
and Decryption.
What's interesting about this algorithm is
that neither user actually gets to choose
the key. But, at the end of the algorithm,
both users have calculated the same key
Example
Let n = 11 and g =7 ( agree on insecure channel )
Alice chooses random number X=3 computes
A=73 mod 11
343 mod 11 = 2
Alice send 2 to bob
Bob chooses random number Y = 6
Computes B = 7 6 mod 11 , 117649 mod 11 = 4
Bob sends 4 to alice
Alice computes : k1 = 43 mod 11 , 64 mod 11 = 9
Bob computes : k2 : 2 6 mod 11 , 64 mod 11 = 9
Hence k1 comes out EQUAL to k2
BOB
n=11 g=7
n=11 g=7
X=3
y=9
A: 2
B =8
A sends 2
B sends 8
4 from B
A : 4 3 mod 11
TOM(A)
n=11 g=7
x=8 , y=6
A=9 , B= 4
INTERCEPTS