{"id":4881,"date":"2016-01-13T14:13:00","date_gmt":"2016-01-13T19:13:00","guid":{"rendered":"http:\/\/irreal.org\/blog\/?p=4881"},"modified":"2016-01-13T14:13:52","modified_gmt":"2016-01-13T19:13:52","slug":"diffie-hellman-explained-with-paint","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=4881","title":{"rendered":"Diffie-Hellman Explained with Paint"},"content":{"rendered":"<p> A cornerstone of modern secure communications is the Diffie-Hellman key exchange. It solves the problem of two communicators who may not know each other and haven&#8217;t previously agreed on a key to negotiate a secret key in public. This may seem impossible<sup><a id=\"fnr.1\" class=\"footref\" href=\"#fn.1\">1<\/a><\/sup> but there is, in fact, a simple solution. The solution is simple enough that anyone with, say, a high school mathematics background can understand it easily. Here&#8217;s my <a href=\"http:\/\/irreal.org\/blog\/?p=3265\">attempt at an explanation<\/a>. <\/p>\n<p> Yesterday, though, I saw a video that explains the method in such a simple and clear manner that even a grade school kid still struggling with arithmetic can understand it. The video uses the <a href=\"https:\/\/www.youtube.com\/watch?v=YEBfamv-_do\">metaphor of mixing paints<\/a> to explain the idea of the algorithm. After that it also goes through the mathematical explanation but that seems easier and more natural after the paint explanation. <\/p>\n<p> Most Irreal readers, I&#8217;m sure, already understand Diffie-Hellman or would have no trouble understanding it once they saw an explanation. Even so, the video is very much worth watching. By stripping away the mathematics it makes the idea behind the algorithm come alive. <\/p>\n<div id=\"footnotes\">\n<h2 class=\"footnotes\">Footnotes: <\/h2>\n<div id=\"text-footnotes\">\n<div class=\"footdef\"><sup><a id=\"fn.1\" class=\"footnum\" href=\"#fnr.1\">1<\/a><\/sup> <\/p>\n<div class=\"footpara\">\n<p class=\"footpara\"> Indeed, Ralph Merkle, who independently discovered the method, was trying to prove that it <i>was<\/i> impossible when he discovered it. <\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>A cornerstone of modern secure communications is the Diffie-Hellman key exchange. It solves the problem of two communicators who may not know each other and haven&#8217;t previously agreed on a key to negotiate a secret key in public. This may &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=4881\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[3],"class_list":["post-4881","post","type-post","status-publish","format-standard","hentry","category-general","tag-security"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4881"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4881\/revisions"}],"predecessor-version":[{"id":4882,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4881\/revisions\/4882"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}