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
View all comments
Show parent comment
1
u/evincarofautumn Jan 26 '18 edited Jan 26 '18
I see what you’re getting at. Yes, while Diffie–Hellman protects against passive snooping, it’s still vulnerable to this kind of active man-in-the-middle attack (simultaneous double impersonation) because it doesn’t say anything about authentication. In the real world, Alice and Bob would use an additional authentication method, for example, cryptographically signing their messages. Then they can ensure that Eve is not forging messages between them.