import { type dom } from "https://deno.land/x/evt@v2.5.2/mod.ts";
const { SubtleCrypto } = dom;
This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).
Methods
deriveBits(): PromiseLike<ArrayBuffer>
exportKey(format: "jwk", key: CryptoKey): PromiseLike<JsonWebKey>
exportKey(format: "raw" | "pkcs8" | "spki", key: CryptoKey): PromiseLike<ArrayBuffer>
exportKey(format: string, key: CryptoKey): PromiseLike<JsonWebKey | ArrayBuffer>
generateKey(): PromiseLike<CryptoKeyPair | CryptoKey>
algorithm: string,
extractable: boolean,
keyUsages: string[],
generateKey(): PromiseLike<CryptoKeyPair>
algorithm: RsaHashedKeyGenParams | EcKeyGenParams | DhKeyGenParams,
extractable: boolean,
keyUsages: string[],
generateKey(): PromiseLike<CryptoKey>
algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params,
extractable: boolean,
keyUsages: string[],
importKey(): PromiseLike<CryptoKey>
unwrapKey(): PromiseLike<CryptoKey>
format: string,
wrappedKey: ,
| Int8Array
| Int16Array
| Int32Array
| Uint8Array
| Uint16Array
| Uint32Array
| Uint8ClampedArray
| Float32Array
| Float64Array
| DataView
| ArrayBuffer
unwrappingKey: CryptoKey,
unwrapAlgorithm: string | Algorithm,
unwrappedKeyAlgorithm: string | Algorithm,
extractable: boolean,
keyUsages: string[],
verify(): PromiseLike<boolean>
algorithm: ,
key: CryptoKey,
signature: ,
| Int8Array
| Int16Array
| Int32Array
| Uint8Array
| Uint16Array
| Uint32Array
| Uint8ClampedArray
| Float32Array
| Float64Array
| DataView
| ArrayBuffer
data: ,
| Int8Array
| Int16Array
| Int32Array
| Uint8Array
| Uint16Array
| Uint32Array
| Uint8ClampedArray
| Float32Array
| Float64Array
| DataView
| ArrayBuffer