Diffie–Hellman key exchange
From WikiTech, the free technology encyclopedia
Method for agreeing a secret key in public (1976)
3 sources from Association for Computing Machinery, Stanford University and Scientific American. Checked by ByteExplained editors on 5 December 2026. How we check facts
Diffie–Hellman key exchange is a cryptographic method that allows two people or computers to agree on a shared secret over a channel that anyone can listen to, without having arranged a secret key beforehand.[3] It solved the long-standing "key distribution" problem and is one of the foundations of modern internet security.[1]
History
Whitfield Diffie and Martin Hellman, both working at Stanford University, described the idea in their 1976 paper "New Directions in Cryptography".[2] The paper set out a blueprint for Public-key cryptography, in which people can communicate over an open channel and still keep their information secret from eavesdroppers, and it also showed how digital signatures could be created.[2] Stanford colleague Dan Boneh has called the paper the birth of modern cryptography.[2] The US National Security Agency tried to limit the spread of the research, a dispute later known as the first "crypto war".[2] In 2016 Diffie and Hellman received the 2015 ACM A.M. Turing Award, which carries a prize of $1 million.[1]
How it works
The two parties first publicly agree on a large prime number and a base number. Each then chooses a secret number, raises the base to that power (working in "clock arithmetic" modulo the prime), and sends the result to the other. Each side then raises the value it received to its own secret number, and both arrive at the same shared value, which an eavesdropper cannot easily work out.[3] A popular analogy compares this to mixing a public base liquid with secret flavourings: because the order of mixing does not matter, both sides end up with the same final drink.[3] The method's security rests on the discrete logarithm problem, which is believed to be hard for ordinary computers, although this has not been proven. A large enough quantum computer running Shor's algorithm could break it, which is one reason for the move towards post-quantum cryptography.[3]
Uses
The protocol underpins most widely used internet security protocols, including HTTPS, where a key is agreed and then used to protect the session with faster symmetric Encryption.[1] It protects connections to banks, online shops, email servers and cloud services, and is used by billions of people every day.[2][3]
See also
References
- ^ Cryptography Pioneers Receive ACM A.M. Turing Award. Association for Computing Machinery. 2016-03-01. acm.org
- ^ Stanford cryptography pioneers Whitfield Diffie and Martin Hellman win ACM A.M. Turing Award. Stanford University. 2016-03-01. news.stanford.edu
- ^ How Two Mathematicians Solved a Cryptography Mystery. Scientific American. scientificamerican.com




