interface SubtleCrypto
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).
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>
importKey(): Promise<CryptoKey>
importKey(format: Exclude<KeyFormat, "jwk">keyData: BufferSourcealgorithm: extractable: booleankeyUsages: KeyUsage[]): Promise<CryptoKey>
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>
verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParamskey: CryptoKeysignature: BufferSourcedata: BufferSource): Promise<boolean>
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>
encrypt(algorithm: , key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>
decrypt(algorithm: , key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>
deriveBits(algorithm: , baseKey: CryptoKey, length: number): Promise<ArrayBuffer>