WebCryptoAPI
Types
algorithm
type algorithm = {mutable name: string}
Record fields
name
string
algorithmIdentifier
type algorithmIdentifier = WebAPI.Prelude.any
crypto
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
type crypto = {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
type cryptoKey = { type_: keyType, extractable: bool, algorithm: keyAlgorithm, usages: array<keyUsage>,}
Record fields
keyAlgorithm
type keyAlgorithm = {mutable name: string}
Record fields
name
string
keyFormat
type keyFormat = | @as("jwk") Jwk | @as("pkcs8") Pkcs8 | @as("raw") Raw | @as("spki") Spki
keyType
type keyType = | @as("private") Private | @as("public") Public | @as("secret") Secret
keyUsage
type keyUsage = | @as("decrypt") Decrypt | @as("deriveBits") DeriveBits | @as("deriveKey") DeriveKey | @as("encrypt") Encrypt | @as("sign") Sign | @as("unwrapKey") UnwrapKey | @as("verify") Verify | @as("wrapKey") WrapKey
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). See SubtleCrypto on MDN
type subtleCrypto = {}
Module
There are methods and helpers defined in SubtleCrypto .