{"id":2147,"date":"2017-06-15T10:46:18","date_gmt":"2017-06-15T08:46:18","guid":{"rendered":"https:\/\/hesmid.nl\/test\/?p=2147"},"modified":"2017-06-15T12:46:12","modified_gmt":"2017-06-15T10:46:12","slug":"password-protect-a-static-html-page","status":"publish","type":"post","link":"https:\/\/hesmid.nl\/test\/password-protect-a-static-html-page\/","title":{"rendered":"Password protect a static HTML page"},"content":{"rendered":"<p>Based on the <a href=\"https:\/\/github.com\/brix\/crypto-js\">crypto-js library<\/a>, StatiCrypt uses AES-256 to encrypt your string with your passphrase in your browser (client side).<\/p>\n<p>Download your encrypted string in a HTML page with a password prompt you can upload anywhere (see <a href=\"https:\/\/robinmoisson.github.io\/staticrypt\/example.html\" target=\"_blank\" rel=\"noopener noreferrer\">example<\/a>).<\/p>\n<p><!--more--><\/p>\n<h4><a id=\"toggle-concept\" class=\"no-style\" href=\"https:\/\/robinmoisson.github.io\/staticrypt\/#\">HOW IT WORKS \u25ba<\/a><\/h4>\n<div id=\"concept\" class=\"\">\n<p>StatiCrypt generates a static, password protected page that can be decrypted in-browser: just send or upload the generated page to a place serving static content (github pages, for exemple) and you&#8217;re done: the javascript will prompt users for password, decrypt the page and load your HTML.<\/p>\n<p><b class=\"text-danger\">Disclaimer<\/b> TL;DR: if you have extra sensitive data, you should probably use something else \ud83d\ude42<\/p>\n<p>StatiCrypt basically encrypts your page and puts everything with a user-friendly way to use a password in the new file.<br \/>\nAES-256 is state of the art but <b>brute-force\/dictionary attacks are trivial to do at a really fast pace: use a long, unusual passphrase\u00a0!<\/b><\/p>\n<p>The concept is simple but this is a side project &#8211; not purporting to be bulletproof, feel free to contribute or report any thought to the <a href=\"https:\/\/github.com\/robinmoisson\/staticrypt\">GitHub project<\/a>\u00a0!<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Based on the crypto-js library, StatiCrypt uses AES-256 to encrypt your string with your passphrase in your browser (client side). Download your encrypted string in a HTML page with a password prompt you can upload anywhere (see example).<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[159,7],"tags":[370],"acf":[],"_links":{"self":[{"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/posts\/2147"}],"collection":[{"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/comments?post=2147"}],"version-history":[{"count":2,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/posts\/2147\/revisions"}],"predecessor-version":[{"id":2158,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/posts\/2147\/revisions\/2158"}],"wp:attachment":[{"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/media?parent=2147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/categories?post=2147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/tags?post=2147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}