

The Diffie-Hellman key exchange traces its started back to the 1970s. History of the Diffie-Hellman key exchange In ephemeral-static mode only one party will generate or create a new private/public key every time, thus a new shared secret will be generated or created. Therefore the resulting shared secret key will be the same every time. In the mode of static-static, both Alice and Bob obtain their private/public keys over multiple communications which use this. She is unable to find or calculate the shared secret key from these values. An eavesdropper Eve who was listening in on the communication knows p, g, Alice's public key (g^a mod p) and Bob's public key (g^b mod p). Therefore both Alice and Bob know a key called shared secret key "g^ab mod p".

She can then find (g^b)^a mod p = g^ab mod p.īob knows "b" and "g^a", so he can find "(g^a)^b mod p = g^ab mod p". She is not able to find the value of b from Bob's public key because this is a hard or complex mathematical problem known as the discrete logarithm problem in mathematics. Alice now knows "a" and Bob's public key g^b mod p as to encrypt the message. Bob chooses his private key "b", and calculates his public key in the same way Alice find its public key.Īlice and Bob then exchange each other‘s public keys. If Alice and Bob want to communicate with each other, they firstly discuss a variable between them a large prime number "p", and a generator or base "g" (where 0 < g < p).Īlice chooses "a" secret integer as her private key and then calculates g^a mod p which is her public key. It is named after their inventors who invent this is Whitfield Diffie and Martin Hellman.

Keys are not eventually exchanged – they are joint and derived. Submitted by Monika Sharma, on January 09, 2020ĭiffie Hellman key exchange algorithm is a method for securely or secretly exchanging cryptographic keys or a key use in encryption or decryption over a public communications channel or away. We will cover the types of message in Diffie Hellman. In this article, we will briefly study the basic Diffie hellman and its examples aim to capture.

This article is about the Diffie Hellman.
