Is there a simple way to add encryption to a static site (e.g. hugo, jekyll etc.) and it can be decrypted on the browser without a backend?<p>This would be for something like a personal journal or close-friends only blog posts while keep the rest of the site open.
Just a pointer, but something like Plainsight[1] may give you some ideas.<p>You could agree on a source text with your friends in an out-of-band way, then everyone just has to go and download whatever book/song/etc that you agree on in order to decode your articles.<p>Anybody who isn't 'in-the-know' will just see gibberish.<p>[1] <a href="https://github.com/rw/plainsight" rel="nofollow">https://github.com/rw/plainsight</a>
You can use Netlify for this: <a href="https://docs.netlify.com/visitor-access/password-protection/#site-wide-protection" rel="nofollow">https://docs.netlify.com/visitor-access/password-protection/...</a>
Encryption can be broken offline. You may want to put a server in front of it to block access to the raw encrypted material.<p>That said, I'm using the Stanford JavaScript Crypto Library on <a href="https://github.com/gabrielsroka/gabrielsroka.github.io/blob/master/webpages/secret.htm" rel="nofollow">https://github.com/gabrielsroka/gabrielsroka.github.io/blob/...</a><p>What about authentication? Maybe putting it on a Google doc and sharing it with certain people?