WebCryptoAPI
Types
algorithm
typealgorithm= {mutablename:string}Record fields
name
string
algorithmIdentifier
typealgorithmIdentifier=WebAPI.Prelude.anycrypto
Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.See Crypto on MDN
typecrypto= {subtle:subtleCrypto}Record fields
Module
There are methods and helpers defined in Crypto.
cryptoKey
The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.See CryptoKey on MDN
typecryptoKey= {type_:keyType,extractable:bool,algorithm:keyAlgorithm,usages:array<keyUsage>,}Record fields
keyAlgorithm
typekeyAlgorithm= {mutablename:string}Record fields
name
string
keyFormat
typekeyFormat=| @as("jwk")Jwk| @as("pkcs8")Pkcs8| @as("raw")Raw| @as("spki")SpkikeyType
typekeyType=| @as("private")Private| @as("public")Public| @as("secret")SecretkeyUsage
typekeyUsage=| @as("decrypt")Decrypt| @as("deriveBits")DeriveBits| @as("deriveKey")DeriveKey| @as("encrypt")Encrypt| @as("sign")Sign| @as("unwrapKey")UnwrapKey| @as("verify")Verify| @as("wrapKey")WrapKeysubtleCrypto
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).See SubtleCrypto on MDN
typesubtleCrypto= {}Module
There are methods and helpers defined in SubtleCrypto.