使用 Javascript 使用密钥对对文本进行签名和验证
是否有任何可用的库(或我可以实现的编写良好的算法参考)允许我使用私钥(最好是我现有的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许是这个? JavaScript 中的 PGP / GnuPG / OpenPGP 消息加密
Maybe this one? PGP / GnuPG / OpenPGP Message Encryption in JavaScript
您可能想研究一下 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.