Skip to content

AES encryption does not work on Microsoft Edge #12

@carlo-aromando

Description

@carlo-aromando

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions