在 Javascript 中检查 GPG 签名

发布于 2024-10-08 17:47:33 字数 242 浏览 0 评论 0原文

已经有一个解决方案用于在JavaScript中提取公钥和加密消息,但我不知道如何解密消息或检查签名。有什么想法吗?

据我所知,已经有一个用于实际解密消息的函数,现在只需提取私钥即可对消息进行签名。如果我错了请纠正我,但是看起来第1步是解密密钥字符串,然后获取MPI(多精度整数),然后将其分离为素数和解密器,可以将其传递给解密功能。

There is already a solution for extracting public keys and encrypting messages in JavaScript, but I cannot figure out how to decrypt messages or check signatures. Any ideas?

From what I can see, there is already a function for actually decrypting the message, now it's just a matter of extracting a private key so messages can be signed. Correct me if I'm wrong, but it looks like step 1 is to decrypt the secret key string, then get the MPI (multi-precision integer), then separate it into the prime numbers and decryptor, which can be passed to the decryption function.

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

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

发布评论

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

评论(2

淑女气质 2024-10-15 17:47:33

我编写了一个在浏览器中使用的通用 GPG/PGP NPAPI 库,该库具有几乎所有内容的公共方法,包括解密和验证。

插件源位于此处: https://github.com/kylehuff/webpg-npapi

该插件目前在 Chrome 的 WebPG 扩展中使用,位于:https://chrome.google。 com/webstore/detail/hhaopbphlojhnmbomffjcbnllcenbnih

扩展源位于此处:https://github。 com/kylehuff/webpg-chrome

两者都是跨平台的 Windows、Linux 和 OSX。

I wrote a generic GPG/PGP NPAPI library for use in the browser that has public methods for most everything, including decryption and verification.

The plugin source is located here: https://github.com/kylehuff/webpg-npapi

The plugin is currently in use in the WebPG extension for chrome, located here: https://chrome.google.com/webstore/detail/hhaopbphlojhnmbomffjcbnllcenbnih

And the extensions source is locate here: https://github.com/kylehuff/webpg-chrome

Both are cross-platform for Windows, Linux and OSX.

世界如花海般美丽 2024-10-15 17:47:33

有一个 Chrome 扩展程序 https://chrome.google.com/webstore/detail/pinhikmcljjkhnpjmpfkhjgiaacajajm虽然我还不确定它是否可以在 Windows 上运行——我现在正在亲自尝试。

There's a chrome extension https://chrome.google.com/webstore/detail/pinhikmcljjkhnpjmpfkhjgiaacajajm though I'm not sure if it works on Windows yet -- I'm trying it out myself right now.

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