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 globalThis.crypto).
Methods Jump to heading
Jump to headinggenerateKey(): Promise<CryptoKeyPair>
Jump to headinggenerateKey(): Promise<CryptoKey>
Jump to headinggenerateKey(): Promise<CryptoKeyPair | CryptoKey>
Jump to headingimportKey(): Promise<CryptoKey>
Jump to headingimportKey(format: Exclude<KeyFormat, "jwk">,keyData: BufferSource,algorithm: ,extractable: boolean,keyUsages: KeyUsage[],): Promise<CryptoKey>
Jump to headingexportKey(format: "jwk",key: CryptoKey,): Promise<JsonWebKey>
Jump to headingexportKey(): Promise<ArrayBuffer>
Jump to headingsign(): Promise<ArrayBuffer>
Jump to headingverify(): Promise<boolean>
Jump to headingdigest(algorithm: AlgorithmIdentifier,data: BufferSource,): Promise<ArrayBuffer>
Jump to headingencrypt(): Promise<ArrayBuffer>
Jump to headingdecrypt(): Promise<ArrayBuffer>
Jump to headingderiveBits(): Promise<ArrayBuffer>
Jump to headingderiveKey(): Promise<CryptoKey>
Jump to headingwrapKey(): Promise<ArrayBuffer>
Jump to headingunwrapKey(format: KeyFormat,wrappedKey: BufferSource,unwrappingKey: CryptoKey,unwrapAlgorithm: ,unwrappedKeyAlgorithm: ,extractable: boolean,keyUsages: KeyUsage[],): Promise<CryptoKey>