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
generateKey(): Promise<CryptoKeyPair>
generateKey(): Promise<CryptoKey>
generateKey(): Promise<CryptoKeyPair | CryptoKey>
verify(): Promise<boolean>
algorithm: AlgorithmIdentifier | RsaPssParams,
key: CryptoKey,
signature: BufferSource,
data: BufferSource,
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>
type
{ prototype: SubtleCrypto; new (): SubtleCrypto; }