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

TypeError: crypto.subtle.importKey is not a function #273

Closed
hiral-kotadiya opened this issue Jun 9, 2021 · 1 comment
Closed

TypeError: crypto.subtle.importKey is not a function #273

hiral-kotadiya opened this issue Jun 9, 2021 · 1 comment

Comments

@hiral-kotadiya
Copy link

After updating, Deno v1.11.0 I am getting typeError in encryption.

const aes = new AES(this.key, { mode: "cbc", iv: this.salt }); // This works proper
const cipher = await aes.encrypt(str); // Error genrates from here.

Error is:
TypeError: crypto.subtle.importKey is not a function at WebCryptoAES.loadKey (https://deno.land/x/god_crypto@v1.4.9/src/aes/aes_wc.ts:24:39) at WebCryptoAES.encrypt (https://deno.land/x/god_crypto@v1.4.9/src/aes/aes_wc.ts:37:28) at AES.encrypt (https://deno.land/x/god_crypto@v1.4.9/src/aes/mod.ts:40:43)

@kt3k
Copy link
Member

kt3k commented Jun 9, 2021

That seems an issue of god_crypto, and you've already opened an issue in right repository invisal/god_crypto#36

@kt3k kt3k closed this as completed Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants