Results 1 - 11 of 11

SubtleCrypto.deriveKey()

The SubtleCrypto.deriveKey() method returns a Promise of a newly generated CryptoKey derivated from a master key and a specific algorithm given as parameters.
API Crypto Method Reference SubtleCrypto Web

SubtleCrypto.digest()

The SubtleCrypto.digest() method returns a Promise of a digest generated from the hash function and text given as parameters.
API Method Reference SubtleCrypto WebCrypto API

SubtleCrypto.decrypt()

The SubtleCrypto.decrypt() method returns a Promise of the cleartext corresponding to the ciphertext, algorithm and key given as parameters.
API Method Reference Référence SubtleCrypto Web Crypto API

SubtleCrypto.encrypt()

The SubtleCrypto.encrypt() method returns a Promise of the encrypted data corresponding to the cleartext, algorithm and key given as parameters.
API Method Reference Référence SubtleCrypto Web Crypto API

SubtleCrypto.exportKey()

The SubtleCrypto.exportKey() method returns a Promise of the key encrypted in the requested format. If the key is not extractable, that is if CryptoKey.extractable returns false, the promise fails with an InvalidAccessError exception; it the format is unknown, the promive fails with a NotSupported exception.
API Method Reference Référence SubtleCrypto Web Crypto API

SubtleCrypto.generateKey()

The SubtleCrypto.generateKey() 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.
API Method Reference Référence SubtleCrypto Web Crypto API

SubtleCrypto.importKey()

The SubtleCrypto.importKey() method returns a Promise of the CryptoKey generated from the data given in parameters.
API Method Reference Référence SubtleCrypto Web Crypto API

SubtleCrypto.sign()

The SubtleCrypto.sign() method returns a Promise containing the signature corresponding to the text, algorithm and key given as parameters.
API Method Reference Référence SubtleCrypto Web Crypto API

SubtleCrypto.unwrapKey()

The SubtleCrypto.unwrapKey() method returns a Promise of a CryptoKey corresponding to the wrapped key given in parameter.
API Method Reference Référence SubtleCrypto Web Crypto API

SubtleCrypto.verify()

The SubtleCrypto.verify() method returns a Promise of a Boolean value indicating if the signature given as parameter matches the text, algorithm and key also given as parameters.
API Method Reference Référence SubtleCrypto Web Crypto API

SubtleCrypto.wrapKey()

The SubtleCrypto.wrapKey() method 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.
API Method Reference Référence SubtleCrypto Web Crypto API