TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Encryption for blog posts on static sites?

10 点作者 dhruvkar大约 5 年前
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.

4 条评论

jamieweb大约 5 年前
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&#x2F;song&#x2F;etc that you agree on in order to decode your articles.<p>Anybody who isn&#x27;t &#x27;in-the-know&#x27; will just see gibberish.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;rw&#x2F;plainsight" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rw&#x2F;plainsight</a>
评论 #23078052 未加载
sdwedq大约 5 年前
You can use Netlify for this: <a href="https:&#x2F;&#x2F;docs.netlify.com&#x2F;visitor-access&#x2F;password-protection&#x2F;#site-wide-protection" rel="nofollow">https:&#x2F;&#x2F;docs.netlify.com&#x2F;visitor-access&#x2F;password-protection&#x2F;...</a>
评论 #23071616 未加载
gabrielsroka大约 5 年前
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&#x27;m using the Stanford JavaScript Crypto Library on <a href="https:&#x2F;&#x2F;github.com&#x2F;gabrielsroka&#x2F;gabrielsroka.github.io&#x2F;blob&#x2F;master&#x2F;webpages&#x2F;secret.htm" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gabrielsroka&#x2F;gabrielsroka.github.io&#x2F;blob&#x2F;...</a><p>What about authentication? Maybe putting it on a Google doc and sharing it with certain people?
评论 #23078058 未加载
newswasboring大约 5 年前
Wouldn&#x27;t adding a lets encrypt certificate to enable https do exactly that?
评论 #23070997 未加载