Diffie-Hellman Key Exchange
What it is
A short explainer on the history and mechanics of public key cryptography and the Diffie-Hellman key exchange. It uses a mixing-paint-colors analogy to show how two parties can agree on a shared secret in public.
Why Hacker News recommends it
It is the go-to beginner explanation of Diffie-Hellman, recommended because the paint analogy makes the idea click without prior cryptography knowledge.
- 9 people recommended it
- 8 different months
- 3 strong recommendations
- first 2016, last 2024
What HN commenters said
“I found this video, Public key cryptography - Diffie-Hellman Key Exchange (full version), to be completely enlightening”
Mixed-color analogy makes key exchange basics click
zappo2938, 2016-12 · Strong recommendation · in “Crypto 101 – Introductory course on cryptography”
“This is my favorite video on Diffie-Hellman key exchange”
Favorite explanation of Diffie-Hellman key exchange
ndesaulniers, 2020-06 · Strong recommendation · in “Postbank to replace 12M bank cards after employees steal 'master key'”
“This is the only video that ever explained it concisely and clearly”
Concise, clear explanation of public key crypto concepts
throw1234651234, 2023-05 · Strong recommendation · in “Public Key Crypto Explained in 0 words”
“This is a great pair of videos that intuitively explain Diffie-Helman key exchange”
Intuitive intro to Diffie-Hellman needing no prior cryptography knowledge
jzl, 2016-11 · Recommendation · in “Ask HN: Is there a “ground-up” explanation of PGP/GnuPG?”
“here's a video that walks through Diffie Hellman, so that anybody can follow”
Walks through Diffie-Hellman so anyone can follow
tialaramex, 2017-06 · Recommendation · in “Ask HN: Want to study SSL, HTTPS, and the works. Where to start?”
“there's a great video that explains it here”
Simple, intuitive explanation of Diffie-Hellman key exchange
ivanr, 2017-06 · Recommendation · in “How HTTPS Handshake Happens”
“there's a pretty neat video that outlines how public-key cryptography works using paint colors”
Paint-color visualization of public-key ideas for beginners
gregmac, 2017-10 · Recommendation · in “Practical Public Key Cryptography”
“I find it easier to visualise, through colours of paint, for a high-level metaphor of the DH key exchange process”
High-level paint-mixing metaphor for the DH exchange
itsrajivshah, 2018-01 · Recommendation · in “Algorithms Explained: Diffie-Hellman”
Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.
Topics: diffie-hellman, key exchange, cryptography, paint analogy, encryption
Also recommended by the same people
talkAbseil's Open Source Hashtables: 2 Years In - Matt Kulukundis - CppCon 2019CppCon · 1 HN recommender · 2021–2026
tutorialCrust of Rust: Lifetime AnnotationsJon Gjengset · 3 HN recommenders · 2020–2023
talkCppCon 2015: Kate Gregory “Stop Teaching C"CppCon · 7 HN recommenders · 2016–2025
newsPeople who remember every second of their life | 60 Minutes Australia60 Minutes Australia · 1 HN recommender · 2022–2025
talkIntroduction to Git with Scott Chacon of GitHubInfoQ · 3 HN recommenders · 2012–2016
talkWhat the heck is the event loop anyway? | Philip Roberts | JSConf EUJSConf · 16 HN recommenders · 2015–2025
documentaryAlcoholic Vervet Monkeys! - Weird Nature - BBC animalsBBC Studios · 2 HN recommenders · 2014–2021
documentaryHow Does Kodak Make Film? (Kodak Factory Tour Part 1 of 3) - Smarter Every Day 271SmarterEveryDay · 3 HN recommenders · 2022–2022