-
Hi, I'm trying to update my lib 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 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? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey 👋 There is no replacement. OpenPGP.js is an OpenPGP library, not a low-level crypto library, and beyond that, EAX support (and AEAD in general) was and is experimental, and may change or go away at any point, and so should not be relied upon. I would recommend using a different library, or extracting the EAX code from OpenPGP.js. |
Beta Was this translation helpful? Give feedback.
Hey 👋 There is no replacement. OpenPGP.js is an OpenPGP library, not a low-level crypto library, and beyond that, EAX support (and AEAD in general) was and is experimental, and may change or go away at any point, and so should not be relied upon. I would recommend using a different library, or extracting the EAX code from OpenPGP.js.