You are on page 1of 4

Diffie Hellman key Exchange

It is not an encryption algorithm. The main purpose of DH Key exchange is to severely


developed shared secrets that can be used to drive keys.
These keys can be used in with symmetric-key algorithm to transmit information in a
protected manner. It uses large numbers, and a lot of math. It doesn’t send all the data
some secret data is kept.

The diffie hellman algorithm(DH) is a key exchange protocol that enables two parties
communicating over public channel to establish a mutual secret without it being
transmitted over the internet. DH enables the two to use a public key to encrypt and
decrypt their conversation or data using symmetric cryptography.
Example

For example Alice and Bob want to share their keys


secretly. They can share their keys by following
method.

They use public path to share but they also have


their secret keys.

They both have yellow color (publically) and also


their secret color. They mix both color and then got
two different colors. Then they share these colors
publicly and they got new colors, they mix their
secret color with this color and got the same color.

Similarly they can share their keys.


Example

In this example two


users share their
keys.

A prime no, primitive


path, and secret key
are used to generate
a value A and B.

Then use their secret


key to solve and got
same answers.
Important Points

1. Prime Numbers should be at least 2048 bits long.


2. No Authentication and Verification is present in it.
3. Risky maybe connect with hackers because they can’t see each other.
4. It is the complex algorithm.
5. Most important development in public key cryptography.
6. Should be secure when implemented in security protocols like TLS, DSA, RSA, STS
and ElGamal.

You might also like