AES EAX加密/解密 - OpenPGPJS

发布于 2025-02-10 10:29:40 字数 432 浏览 0 评论 0 原文

我正在尝试将OpenPGP JS从4.10.1更新为最新。我试图浏览文档,但找不到EAX解密的替代。测试文件夹直接将EAX模块导入测试()但是,在生产env上,EAX不能像这样进口。这是我以前在做的事情:

const eax = await window.openpgp.crypto.eax(cipher, key);
let result = await eax.decrypt(encryptedData, nonce, header);

如何使用最新版本5.3解密相同的?

I'm trying to update OpenPGP JS from 4.10.1 to the latest. I tried to go through the documentation but couldn't find the replacement of EAX decryption. The tests folder directly imports the EAX module to test (as used here) however on production env, the EAX cannot be imported like that. Here is what I was doing before:

const eax = await window.openpgp.crypto.eax(cipher, key);
let result = await eax.decrypt(encryptedData, nonce, header);

How can I decrypt the same using latest version 5.3?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文