Diffie-HellmanFrom CryptoDox, The Online Encyclopedia on Cryptography and Information SecurityThe Diffie-Hellman key agreement protocol (also called exponential key agreement) was developed by Whitfield Diffie and Martin Hellman in 1976 and published in the ground-breaking paper "New Directions in Cryptography." The protocol allows two users to exchange a secret key over an insecure medium without any prior secrets. U.S. Patent 4,200,770, now expired, describes the algorithm and credits Hellman, Diffie, and Merkle as inventors. The Algorithm
y = g^x % p
z = y^x % p 'z' can now be used as the key for whatever encryption method is used to transfer information between the two hosts. Mathematically, the two hosts should have generated the same value for 'z'. z = (g^x % p)^x' % p = (g^x' % p)^x % All of these numbers are positve integers x^y means: x is raised to the y power x%y means: x is divided by y and the remainder is returned
References
External Links |



