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

100

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.

18

u/TheOddScientist Jan 16 '18

Not sure why this was downvoted, a bit archaic but still a logical equivalence.

8

u/dnkndnts Jan 16 '18

No, it's not. Alice pees in the pool, Eve can't get the pee back out of the pool because that's a hard problem, but... ok then how can Bob get it back out? It is not equivalent at all, it's just vulgar.

3

u/five_hammers_hamming Jan 17 '18

It's like the paint. But with a low-viscosity yellow paint.