Diffie Hellman
Diffie Hellman
College of Computer
Engineering of Networks
Diffie-Hellman Algorithm
Supervised by:
Eng/Wijdan
Prepared by:
Ayman Salah Ahmed Morshed /B201904009
Department: Network Level 4
What is Diffie-Hellman Algorithm ?
Example:
In a Diffie-Hellman Key Exchange, Alice and Bob have chosen prime value q =
17 and primi ve root = 5. If Alice’s secret key is 4 and Bob’s secret key is 6,
what is the secret key they exchanged?
Solution-
Given-
n = 17
a=5
Private key of Alice = 4
Private key of Bob = 6
Both Alice and Bob calculate the value of their public key and exchange with
each other.
Both the parties calculate the value of secret key at their respective side.
Conclusion
The Diffie Hellman key Exchange has proved to be a useful key exchange
system due to its advantages. While it is really tough for someone snooping
the network to decrypt the data and get the keys, it is still possible if the
numbers generated are not entirely random. Also, the key exchange system
makes it possible to do a man in the middle attack; to avoid it, both parties
should be very careful at the beginning of the exchange.
--------------------------------------------------------------------
---------------------------------------------
----------------------