Node js 中的 pgp 加密类似于充气城堡
我正在寻找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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你看过 openpgpjs 吗?
如果您的意思是“节点的 openpgp 包”,请道歉。
Have you looked at openpgpjs?
Apologies if you mean that by "openpgp package of node".
您可以使用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.