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

Show parent comment

8

u/fjortisar Jan 16 '18 edited Jan 16 '18

The color example in contrived, in reality that would be easy to break. It's just shown like that to make it easily understandable instead of showing you large prime numbers.

On the use here, Diffie Hellman isn't actually used for encryption itself. It's used to have 2 people agree on a key (for say symmetric AES encryption) without ever actually exchanging it.