enigma icon indicating copy to clipboard operation
enigma copied to clipboard

AES encryption does not work on Microsoft Edge

Open carlo-aromando opened this issue 6 years ago • 0 comments

Hello, I've tried to test the AES encryption in GCM mode on Microsoft Edge 44.18362.449.0 (CRT is not supported on Edge) but does not work.

This is the example I've tried:

new Enigma.AES().init({algorithm: Enigma.AES.Algorithm.GCM}).then(async (aes: Enigma.AES) =>
{
    const my_secret = 'My secret';

    try
    {
        const cipher = await aes.encrypt(my_secret);
        console.log(cipher);
    }
    catch(error)
    {
        console.error(error.message);
    }
});

And this is the error logged: Could not complete the operation due to error 8070000b.

After a quick search on the error, it is perhaps related to an incompatibility of the WebCrypto API implemented on Edge. Here is another issue encountered for the WebCrypto API on Edge: https://stackoverflow.com/questions/33043091/public-key-encryption-in-microsoft-edge

carlo-aromando avatar Jan 30 '20 15:01 carlo-aromando