DenoDDeno
Powered by
j4J
Denoβ€’4y agoβ€’
3 replies
j4

Getting error `Unrecognized algorithm name` on `crypto.subtle.importKey()`

I can't figure this one out. I've done some searching and found a list of supported algos at https://deno.land/std@0.167.0/crypto/mod.ts

See anything I'm doing wrong? I tried it without the hash as well. Here's a snippet:

/* supabase edge function */
import { crypto } from 'https://deno.land/std@0.167.0/crypto/mod.ts'

const cryptokey = await crypto.subtle.importKey('spki', encoded_plain_key, 'SHA-512', false, ['sign'])
/* supabase edge function */
import { crypto } from 'https://deno.land/std@0.167.0/crypto/mod.ts'

const cryptokey = await crypto.subtle.importKey('spki', encoded_plain_key, 'SHA-512', false, ['sign'])
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

definition for subtle crypto broken?
jcayzacJjcayzac / help
3mo ago
How do I use crypto.subtle.importKey to verify the signature sent by Admob SSV ?
TheCarpetMerchantTTheCarpetMerchant / help
2y ago
Issues with Crypto Subtle Digest ext:deno_crypto/00_crypto.js
beanBbean / help
3y ago
How do I make the crypto.subtle.digest algo flexible?
QuantumQQuantum / help
3y ago