International Journal of Advanced Research in Computer Science and Software Engineering (IJARCSSE)
Secure key distribution is an important concern related to cryptography. The first published and most widely used key exchange algorithm is the Diffie-Hellman key exchange algorithm. The purpose of this algorithm is to enable two users to securely exchange a key that can be then used for subsequent encryption of messages. However, this algorithm suffers from man-in-the-middle attack, in which an opponent can perform eavesdropping and replay attacks, in which an opponent can replay the message later.