SubtleCrypto
The SubtleCrypto
interface of the Web Crypto API provides a number of low-level cryptographic functions. Available only in secure contexts.
Functions
The decrypt()
method of the SubtleCrypto interface decrypts some encrypted data.
The deriveBits()
method of the key.
The deriveKey()
method of the SubtleCrypto interface can be used to derive a secret key from a master key.
The digest()
method of the SubtleCrypto interface generates a digest of the given data, using the specified hash function.
The encrypt()
method of the SubtleCrypto interface encrypts data.
The exportKey()
method of the SubtleCrypto interface exports a key: that is, it takes as input a CryptoKey object and gives you the key in an external, portable format.
The generateKey()
method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
The importKey()
method of the SubtleCrypto interface imports a key: that is, it takes as input a key in an external, portable format and gives you a CryptoKey object that you can use in the Web Crypto API.
The sign()
method of the SubtleCrypto interface generates a digital signature.
The unwrapKey()
method of the SubtleCrypto interface 'unwraps' a key.
The verify()
method of the SubtleCrypto interface verifies a digital signature.
The wrapKey()
method of the SubtleCrypto interface 'wraps' a key.