Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AES encryption does not work on Microsoft Edge #12

Open
carlo-aromando opened this issue Jan 30, 2020 · 0 comments
Open

AES encryption does not work on Microsoft Edge #12

carlo-aromando opened this issue Jan 30, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@carlo-aromando
Copy link
Contributor

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 carlo-aromando added the bug Something isn't working label Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant