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
12
u/A_Vicarious_Death Jan 16 '18
Generally the rule with exponents is:
xy * xz = xy+z
xyz = xyz
Let's take an example of 223 vs 232 vs 26
(22)3 =
(22) * (22) * (22) =
(2 * 2) * (2 * 2) * (2 * 2) =
(4) * (4) * (4) =
64
(23)2 =
(23) * (23) =
(2 * 2 * 2) * (2 * 2 * 2) =
(8) * (8) =
64
26 = (22222*2) = 64
Hope that helped.