Returns a Promise of the clear data corresponding to the encrypted text, algorithm and key given as parameters.
Returns a Promise of the clear data corresponding to the encrypted text, algorithm and key given as parameters. MDN
Defined at ¶14.3.2 The decrypt method
Returns a Promise of a newly generated buffer of pseudo-random bits derivated from a master key and a specific algorithm given as parameters.
Returns a Promise of a newly generated buffer of pseudo-random bits derivated from a master key and a specific algorithm given as parameters. MDN
Defined at ¶14.3.8 The deriveBits method
Returns a Promise of a newly generated CryptoKey derivated from a master key and a specific algorithm given as parameters.
Returns a Promise of a newly generated CryptoKey derivated from a master key and a specific algorithm given as parameters. MDF
Defined at ¶14.3.7 The deriveKey method
We are being a bit more precise than the official definition by requiring KeyAlgorithmIdentifier for derivedKeyType
Returns a Promise of a digest generated from the algorithm and text given as parameters.
Returns a Promise of a digest generated from the algorithm and text given as parameters. MDN
Defined at ¶14.3.5 The digest method We are a bit more precise than the official definition by requiring a HashAlgorithmIdentifier rather than an AlgorithmIdentifier for the algorithm parameter.
Returns a Promise of the encrypted data corresponding to the clear text, algorithm and key given as parameters.
Returns a Promise of the encrypted data corresponding to the clear text, algorithm and key given as parameters. MDN
Defined at ¶14.3.1 The encrypt method
Returns a Promise of a buffer containing the key in the format requested.
Returns a Promise of a buffer containing the key in the format requested.
Defined at ¶14.3.10 The exportKey method
Returns a Promise of a newly generated CryptoKey, for symmetrical algorithms, or a CryptoKeyPair, containing two newly generated keys, for asymmetrical algorithm, that matches the algorithm, the usages and the extractability given as parameters.
Returns a Promise of a newly generated CryptoKey, for symmetrical algorithms, or a CryptoKeyPair, containing two newly generated keys, for asymmetrical algorithm, that matches the algorithm, the usages and the extractability given as parameters. MDN
Defined at ¶14.3.6 The generateKey method
We are being a bit more precise than the official definition by requiring a KeyAlgorithmIdentifier rather than an AlgorithmIdentifier for the algorithm field.
Returns a Promise of a CryptoKey corresponding to the format, the algorithm, the raw key data, the usages and the extractability given as parameters.
Returns a Promise of a CryptoKey corresponding to the format, the algorithm, the raw key data, the usages and the extractability given as parameters. MDN
Defined at ¶14.3.9 The importKey method
We are being a bit more precise than the official definition by requiring a KeyAlgorithmIdentifier rather than an AlgorithmIdentifier for the algorithm field.
Returns a Promise of a CryptoKey corresponding to the format, the algorithm, the raw key data, the usages and the extractability given as parameters.
Returns a Promise of a CryptoKey corresponding to the format, the algorithm, the raw key data, the usages and the extractability given as parameters. MDN
Defined at ¶14.3.9 The importKey method
We are being a bit more precise than the official definition by requiring a KeyAlgorithmIdentifier rather than an AlgorithmIdentifier for the algorithm field.
Returns a Promise of the signature corresponding to the text, algorithm and key given as parameters.
Returns a Promise of the signature corresponding to the text, algorithm and key given as parameters. MDN
Defined at ¶14.3.3 The sign method
Returns a Promise of a CryptoKey corresponding to the wrapped key given in parameter.
Returns a Promise of a CryptoKey corresponding to the wrapped key given in parameter. MDN
Defined at ¶14.3.12 The unwrapKey method
We are being a bit more precise than the official definition by requiring a KeyAlgorithmIdentifier rather than an AlgorithmIdentifier.
Returns a Promise of a Boolean value indicating if the signature given as parameter matches the text, algorithm and key also given as parameters.
Returns a Promise of a Boolean value indicating if the signature given as parameter matches the text, algorithm and key also given as parameters. MDN
Defined at ¶14.3.4 The verify method
Returns a Promise of a wrapped symmetric key for usage (transfer, storage) in unsecure environments.
Returns a Promise of a wrapped symmetric key for usage (transfer, storage) in unsecure environments. The wrapped buffer returned is in the format given in parameters, and contained the key wrapped by the give wrapping key with the given algorithm.
Defined at ¶14.3.11 The wrapKey method
w3c ¶14 Subtle Crytpo interface
The SubtleCrypto interface represents a set of cryptographic primitives. It is available via the Crypto.subtle properties available in a window context (via Window.crypto).
MDN