The SubtleCrypto interface of the Web Crypto API provides a number
low-level cryptographic functions. It is accessed via the web.Crypto.subtle
available in a window context (via web.Window.crypto
).
The SubtleCrypto interface of the Web Crypto API provides a number low-level cryptographic functions. It is accessed via the `web.Crypto.subtle` available in a window context (via `web.Window.crypto`).
(decrypt this algorithm key data)
Method.
The decrypt() method of the web.SubtleCrypto
interface decrypts
encrypted data. It takes as arguments a key to decrypt with,
optional extra parameters, and the data to decrypt (also known
"ciphertext"). It returns a web.Promise
which will be fulfilled
the decrypted data (also known as "plaintext").
const result = crypto.subtle.decrypt(algorithm, key, data);
See also: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt
Method. The decrypt() method of the `web.SubtleCrypto` interface decrypts encrypted data. It takes as arguments a key to decrypt with, optional extra parameters, and the data to decrypt (also known \"ciphertext\"). It returns a `web.Promise` which will be fulfilled the decrypted data (also known as \"plaintext\"). `const result = crypto.subtle.decrypt(algorithm, key, data);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt`
(derive-bits this & args)
Method.
The deriveBits() method of the web.SubtleCrypto
interface can
used to derive an array of bits from a base key.
const result = crypto.subtle.deriveBits( algorithm, baseKey, length );
See also: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveBits
Method. The deriveBits() method of the `web.SubtleCrypto` interface can used to derive an array of bits from a base key. `const result = crypto.subtle.deriveBits( algorithm, baseKey, length );` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveBits`
(derive-key this & args)
Method.
The deriveKey() method of the web.SubtleCrypto
interface can
used to derive a secret key from a master key.
const result = crypto.subtle.deriveKey( algorithm, baseKey, derivedKeyAlgorithm, extractable, keyUsages );
See also: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveKey
Method. The deriveKey() method of the `web.SubtleCrypto` interface can used to derive a secret key from a master key. `const result = crypto.subtle.deriveKey( algorithm, baseKey, derivedKeyAlgorithm, extractable, keyUsages );` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveKey`
(digest this algorithm data)
Method.
The digest() method of the web.SubtleCrypto
interface generates
digest of the given data. A digest is a short fixed-length value
from some variable-length input. Cryptographic digests should
collision-resistance, meaning that it's hard to come up with
different inputs that have the same digest value.
const digest = crypto.subtle.digest(algorithm, data);
See also: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest
Method. The digest() method of the `web.SubtleCrypto` interface generates digest of the given data. A digest is a short fixed-length value from some variable-length input. Cryptographic digests should collision-resistance, meaning that it's hard to come up with different inputs that have the same digest value. `const digest = crypto.subtle.digest(algorithm, data);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest`
(encrypt this algorithm key data)
Method.
The encrypt() method of the web.SubtleCrypto
interface encrypts
const result = crypto.subtle.encrypt(algorithm, key, data);
See also: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt
Method. The encrypt() method of the `web.SubtleCrypto` interface encrypts `const result = crypto.subtle.encrypt(algorithm, key, data);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt`
(export-key this format key)
Method.
The exportKey() method of the web.SubtleCrypto
interface exports
key: that is, it takes as input a web.CryptoKey
object and
you the key in an external, portable format.
const result = crypto.subtle.exportKey(format, key);
See also: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/exportKey
Method. The exportKey() method of the `web.SubtleCrypto` interface exports key: that is, it takes as input a `web.CryptoKey` object and you the key in an external, portable format. `const result = crypto.subtle.exportKey(format, key);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/exportKey`
(generate-key this algorithm extractable key-usages)
Method.
Use the generateKey() method of the web.SubtleCrypto
interface
generate a new key (for symmetric algorithms) or key pair (for
algorithms).
const result = crypto.subtle.generateKey(algorithm, extractable, keyUsages);
See also: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/generateKey
Method. Use the generateKey() method of the `web.SubtleCrypto` interface generate a new key (for symmetric algorithms) or key pair (for algorithms). `const result = crypto.subtle.generateKey(algorithm, extractable, keyUsages);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/generateKey`
(import-key this & args)
Method.
The importKey() method of the web.SubtleCrypto
interface imports
key: that is, it takes as input a key in an external, portable
and gives you a web.CryptoKey
object that you can use in the
Crypto API.
const result = crypto.subtle.importKey( format, keyData, algorithm, extractable, usages );
See also: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey
Method. The importKey() method of the `web.SubtleCrypto` interface imports key: that is, it takes as input a key in an external, portable and gives you a `web.CryptoKey` object that you can use in the Crypto API. `const result = crypto.subtle.importKey( format, keyData, algorithm, extractable, usages );` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey`
(sign this algorithm key data)
Method.
The sign() method of the web.SubtleCrypto
interface generates
digital signature.
const signature = crypto.subtle.sign(algorithm, key, data);
See also: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/sign
Method. The sign() method of the `web.SubtleCrypto` interface generates digital signature. `const signature = crypto.subtle.sign(algorithm, key, data);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/sign`
(unwrap-key this & args)
Method.
The unwrapKey() method of the web.SubtleCrypto
interface "unwraps"
key. This means that it takes as its input a key that has been
and then encrypted (also called "wrapped"). It decrypts the
and then imports it, returning a web.CryptoKey
object that
be used in the Web Crypto API.
const result = crypto.subtle.unwrapKey( format, wrappedKey, unwrappingKey, unwrapAlgo, unwrappedKeyAlgo, extractable, keyUsages );
See also: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey
Method. The unwrapKey() method of the `web.SubtleCrypto` interface \"unwraps\" key. This means that it takes as its input a key that has been and then encrypted (also called \"wrapped\"). It decrypts the and then imports it, returning a `web.CryptoKey` object that be used in the Web Crypto API. `const result = crypto.subtle.unwrapKey( format, wrappedKey, unwrappingKey, unwrapAlgo, unwrappedKeyAlgo, extractable, keyUsages );` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey`
(verify this algorithm key signature data)
Method.
The verify() method of the web.SubtleCrypto
interface verifies
digital signature.
const result = crypto.subtle.verify(algorithm, key, signature, data);
See also: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify
Method. The verify() method of the `web.SubtleCrypto` interface verifies digital signature. `const result = crypto.subtle.verify(algorithm, key, signature, data);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify`
(wrap-key this & args)
Method.
The wrapKey() method of the web.SubtleCrypto
interface "wraps"
key. This means that it exports the key in an external, portable
then encrypts the exported key. Wrapping a key helps protect
in untrusted environments, such as inside an otherwise unprotected
store or in transmission over an unprotected network.
const result = crypto.subtle.wrapKey( format, key, wrappingKey, wrapAlgo );
See also: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/wrapKey
Method. The wrapKey() method of the `web.SubtleCrypto` interface \"wraps\" key. This means that it exports the key in an external, portable then encrypts the exported key. Wrapping a key helps protect in untrusted environments, such as inside an otherwise unprotected store or in transmission over an unprotected network. `const result = crypto.subtle.wrapKey( format, key, wrappingKey, wrapAlgo );` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/wrapKey`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close