Node js 中的 pgp 加密类似于充气城堡

发布于 2025-01-17 08:36:03 字数 175 浏览 2 评论 0原文

我正在寻找nodejs中的一个包,它可以帮助使用使用java中的bouncy castle生成的公钥来加密数据,并且加密的数据将再次在bouncy castle中解密。 我已经尝试过节点的 openpgp 包,我能够加密,但似乎在解密充气城堡中的数据时存在一些问题。

例如,我无法提供任何代码,因此对此表示歉意并提前致谢。

I am looking for a package in nodejs which can help in the encryption of data using the public key which has been generated using bouncy castle in java and the encrypted data will be decrypted in bouncy castle again.
I already tried openpgp package of node, I am able to encrypt but it seems that there is some issue in decrypting the data in bouncy castle.

I won't be able to provide any code for example, so apologies for that and thanks in advance.

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

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

发布评论

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

评论(2

赠我空喜 2025-01-24 08:36:04

你看过 openpgpjs 吗?

如果您的意思是“节点的 openpgp 包”,请道歉。

Have you looked at openpgpjs?

Apologies if you mean that by "openpgp package of node".

浅黛梨妆こ 2025-01-24 08:36:04

您可以使用openPGP并设置选项压缩是openpgp.enums.compression.zip。
它将与弹性城堡兼容。
我建议使用v4.10.11。我尝试了LAST版本,但与压缩选项相关的期望并不正常。

You can use openpgp and set the options compression is openpgp.enums.compression.zip.
It will be compatible with bouncy castle.
I recommended to use v4.10.11. I tried with lastest version, but it didn't work as expect with compression options.

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