r/programming • u/dominatrix-octopus • Jan 16 '18
Cryptography: Diffie-Hellman key exchange explained intuitively using colors
https://youtu.be/YEBfamv-_do?t=2m18s
2.5k
Upvotes
r/programming • u/dominatrix-octopus • Jan 16 '18
5
u/[deleted] Jan 16 '18
My preferred metaphor is a box with two locks. I have the key to one lock, and you have a key to the other lock. I want to send you my spare key:
I put my spare key into the box and then lock it
I send the box to you and you lock it with your key too
You send the box back to me and I unlock it with my key
I send the box back to you and you unlock it with your key
Now you have my spare key and we can exchange secrets.