{"id":1224,"date":"2009-06-02T16:53:24","date_gmt":"2009-06-02T07:53:24","guid":{"rendered":"https:\/\/regex.info\/blog\/2009-06-02\/1224"},"modified":"2009-06-02T16:53:24","modified_gmt":"2009-06-02T07:53:24","slug":"programming-in-the-stone-age-sha-1-and-hmac-sha1-in-pure-lua","status":"publish","type":"post","link":"https:\/\/regex.info\/blog\/2009-06-02\/1224","title":{"rendered":"Programming in the Stone Age: SHA-1 and HMAC-SHA1 in Pure Lua"},"content":{"rendered":"\n\n\n<div class='resize_warning' id='arw1222'>\n<b>NOTE<\/b>: Images with an <img class='raw' width='19' height='18' src='\/i\/s\/red_zoomup.gif'\/> icon next to them have been artificially shrunk to better fit your screen; click the icon to restore them, in place, to their regular size.\n<\/div>\n\n\n<p>I've coded up <a\nhref=\"http:\/\/en.wikipedia.org\/wiki\/SHA_hash_functions#SHA-0_and_SHA-1\"\nclass='quiet'>SHA-1 Secure Hash<\/a> computation and <a\nclass='quiet'\nhref=\"http:\/\/en.wikipedia.org\/wiki\/HMAC-SHA1\">HMAC-SHA1<\/a> secure\nsignature computation in pure <a href=\"http:\/\/www.lua.org\/\">Lua<\/a> and\nthought I'd share them in case anyone else would find them useful. <span class='nobr'>The download<\/span> is over on my so-inventively-named &#8220;<a\nhref=\"\/blog\/lua\/sha1\" class='quiet'><i>SHA-1 and HMAC-SHA1\nin pure Lua<\/i><\/a>&#8221; page.<\/p>\n\n<p>Lua is a horrid language, so these were not trivial, but <span class='nobr'>I needed<\/span> them for the\nTwitter support <span class='nobr'>I just<\/span> added to some of my\n<a href=\"\/blog\/lightroom-goodies\"\nclass='quiet'>plugins for Adobe Lightroom<\/a>\n(<span class='nobr'>I added<\/span> Twitter support to: <a href=\"\/blog\/lightroom-goodies\/zenfolio\/\"  class='quiet'>Zenfolio<\/a>,\n<a href=\"\/blog\/lightroom-goodies\/flickr\/\"    class='quiet'>Flickr<\/a>,\n<a href=\"\/blog\/lightroom-goodies\/facebook\/\"  class='quiet'>Facebook<\/a>,\n<a href=\"\/blog\/lightroom-goodies\/smugmug\/\"   class='quiet'>SmugMug<\/a>, and\n<a href=\"\/blog\/lightroom-goodies\/picasaweb\/\" class='quiet'>Picasa Web<\/a>). <span class='nobr'>I hope someone<\/span> else can get some use out of the result.<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>I've coded up SHA-1 Secure Hash computation and HMAC-SHA1 secure signature computation in pure Lua and thought I'd share them in case anyone else would find them useful. The download is over on my so-inventively-named \"SHA-1 and HMAC-SHA1 in pure Lua\" page.<\/p> <p>Lua is a horrid language, so these were not trivial, but I needed them for the Twitter support I just added to some of my plugins for Adobe Lightroom (I added Twitter support to: Zenfolio, Flickr, Facebook, SmugMug, and Picasa Web). I hope someone else can get some use out of the result.<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/posts\/1224"}],"collection":[{"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/comments?post=1224"}],"version-history":[{"count":0,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/posts\/1224\/revisions"}],"wp:attachment":[{"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/media?parent=1224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/categories?post=1224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/tags?post=1224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}