使用 Javascript 使用密钥对对文本进行签名和验证

发布于 2024-10-06 04:34:58 字数 177 浏览 0 评论 0原文

是否有任何可用的库(或我可以实现的编写良好的算法参考)允许我使用私钥(最好是我现有的 SSH (RSA) 或 PGP 密钥)签署一段文本?

我的目标是编写一个小书签来签署我的博客文章,并提供另一个小书签以允许其他人验证它们。我并不想进行任何类型的安全通信。我只是认为能够存储其他人的公钥并使用它们自动验证作者身份可能会很酷。

Is there any library available (or well-written algorithm reference I could implement) that would allow me to sign a piece of text with a private key, preferably my existing SSH (RSA) or PGP key?

My goal is to write a bookmarklet to sign my blog posts, and provide another bookmarklet to allow others to verify them. I'm not trying to do any kind of secure communication. I just thought it might be neat to be able to store the public keys of others and use them to verify authorship automatically.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

寒冷纷飞旳雪 2024-10-13 04:34:58

您可能想研究一下 jCryption: http://www.jcryption.org/

它是用来加密表单的ajax,但它可能是一个开始的地方。

You may want to look into jCryption: http://www.jcryption.org/

It's made to encrypt forms using ajax, but it may be somewhere to get started.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文