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
2
u/spartan_noble6 Jan 16 '18 edited Jan 16 '18
This was the question I wanted answered, cant believe nobody else was asking this question. I still dont fully understand your explanation in
What is a "path", and what are the 'things' in "everything with kc in it". Are the 'things' the terms from the polynomial expansion of (y+kc)b, and for any expansion, the yn term will be the only term in the expansion without a factor of c in its expression?
Can you correct me here: (y+kc)2 = y2 + (kc)2 + 2ykc.
((kc)2 + 2ykc) mod c = 0 (I'm assuming since it will result in some multiple of c, right?)
And so from the expansion only y2 mod c could be a non zero result? And this works for any b in (y+kc)b?