{"id":70,"date":"2018-02-05T21:44:14","date_gmt":"2018-02-05T21:44:14","guid":{"rendered":"https:\/\/hegars83.wordpress.com\/?p=70"},"modified":"2018-06-14T16:50:51","modified_gmt":"2018-06-14T16:50:51","slug":"sha-messing-around","status":"publish","type":"post","link":"https:\/\/blog.hegars.com\/?p=70","title":{"rendered":"SHA Messing around"},"content":{"rendered":"<p>01100101001100110110001000110000011000110011010000110100001100100011100100111000011001100110001100110001011000110011000100110100001110010110000101100110011000100110011000110100011000110011100000111001001110010011011001100110011000100011100100110010001101000011001000110111011000010110010100110100001100010110010100110100001101100011010000111001011000100011100100110011001101000110001101100001001101000011100100110101001110010011100100110001011000100011011100111000001101010011001001100010001110000011010100110101<\/p>\n<p><strong>echo -n &#8220;&#8221; | sha256sum -b | awk {&#8216;printf $1&#8217;} | xxd -b -c 1\u00a0\u00a0|\u00a0awk {&#8216;print $2&#8217;} | paste -sd &#8220;&#8221;\u00a0<\/strong><\/p>\n<p><strong>echo -n &#8220;&#8221; |<\/strong><br \/>\necho blank with no line feed &#8216;-n&#8217; pipe out<\/p>\n<p><strong>sha256sum -b |<\/strong><br \/>\ngenerate sha in binary &#8216;-b&#8217; then pipe out<\/p>\n<p><strong>awk {&#8216;printf $1&#8217;} |<\/strong><br \/>\nawk $1 and printf to supress new LF then pipe out<\/p>\n<p><strong>xxd -b -c 4<\/strong><br \/>\nxxd to turn into nice output<\/p>\n<p>00000000: 01100101 00110011 01100010 00110000 e3b0<br \/>\n00000004: 01100011 00110100 00110100 00110010 c442<br \/>\n00000008: 00111001 00111000 01100110 01100011 98fc<br \/>\n0000000c: 00110001 01100011 00110001 00110100 1c14<br \/>\n00000010: 00111001 01100001 01100110 01100010 9afb<br \/>\n00000014: 01100110 00110100 01100011 00111000 f4c8<br \/>\n00000018: 00111001 00111001 00110110 01100110 996f<br \/>\n0000001c: 01100010 00111001 00110010 00110100 b924<br \/>\n00000020: 00110010 00110111 01100001 01100101 27ae<br \/>\n00000024: 00110100 00110001 01100101 00110100 41e4<br \/>\n00000028: 00110110 00110100 00111001 01100010 649b<br \/>\n0000002c: 00111001 00110011 00110100 01100011 934c<br \/>\n00000030: 01100001 00110100 00111001 00110101 a495<br \/>\n00000034: 00111001 00111001 00110001 01100010 991b<br \/>\n00000038: 00110111 00111000 00110101 00110010 7852<br \/>\n0000003c: 01100010 00111000 00110101 00110101 b855<\/p>\n","protected":false},"excerpt":{"rendered":"<p>01100101001100110110001000110000011000110011010000110100001100100011100100111000011001100110001100110001011000110011000100110100001110010110000101100110011000100110011000110100011000110011100000111001001110010011011001100110011000100011100100110010001101000011001000110111011000010110010100110100001100010110010100110100001101100011010000111001011000100011100100110011001101000110001101100001001101000011100100110101001110010011100100110001011000100011011100111000001101010011001001100010001110000011010100110101 echo -n &#8220;&#8221; | sha256sum -b | awk {&#8216;printf $1&#8217;} | xxd -b -c 1\u00a0\u00a0|\u00a0awk {&#8216;print $2&#8217;} | paste -sd &#8220;&#8221;\u00a0 echo -n &#8220;&#8221; | echo blank with no line feed &#8216;-n&#8217; pipe out sha256sum -b | generate sha in binary &#8216;-b&#8217; then pipe out awk {&#8216;printf $1&#8217;} | awk $1 and printf to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts\/70"}],"collection":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=70"}],"version-history":[{"count":1,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts\/70\/revisions"}],"predecessor-version":[{"id":159,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts\/70\/revisions\/159"}],"wp:attachment":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=70"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=70"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}