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 #
#generateKey(): Promise<CryptoKeyPair>#generateKey(): Promise<CryptoKey>#generateKey(): Promise<CryptoKeyPair | CryptoKey>#importKey(): Promise<CryptoKey>#exportKey(format: "jwk",key: CryptoKey,): Promise<JsonWebKey>#verify(): Promise<boolean>#digest(algorithm: AlgorithmIdentifier,data: BufferSource,): Promise<ArrayBuffer>#encrypt(): Promise<ArrayBuffer>#decrypt(): Promise<ArrayBuffer>#deriveBits(): Promise<ArrayBuffer>variable SubtleCrypto
Properties #
readonly
#prototype: SubtleCrypto