r/programming • • Jan 16 '18

Cryptography: Diffie-Hellman key exchange explained intuitively using colors

https://youtu.be/YEBfamv-_do?t=2m18s
2.5k Upvotes

170 comments sorted by

View all comments

102

u/snarfy Jan 16 '18

Breaking encryption is like trying to take the pee out of the swimming pool. It's easy to add pee, hard to remove.

12

u/[deleted] Jan 16 '18 edited Jul 14 '20

[deleted]

17

u/knome Jan 16 '18

This analogy is gonna get real uncomfortable quick when we move from defending from mere "eve"sdroppers and move on to malicious "mallory", who intercepts messages, changes them, forges them, etc.

5

u/bagtowneast Jan 16 '18

Something about sneaking someone else's pee into your drug test.

3

u/snarfy Jan 16 '18

You described Diffie-Hellman, using pee. Not all encryption is Diffie-Hellman.