Results 1 - 20 of 20

Crypto

The Crypto interface represents basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.
API Interface Reference Référence Web Crypto API

CryptoKey

The CryptoKey interface represents a cryptographic key derived from a specific key algorithm.
API Interface Reference Référence Web Crypto API

SubtleCrypto

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).
API Interface Reference Référence Web Crypto API

Supported algorithms

Different algorithms are supported for the different functions provided by the Web Crypto API. Also, depending of the context, these algorithms needs parameters or they will raise a SyntaxError. This pages lists the context, the available algorithms and the required parameters.
API Reference Référence Web Crypto API

Crypto.subtle

The Crypto.subtle read-only property returns a SubtleCrypto object allowing to perform cryptographical operations.
API Cryptography Property Read-only Reference Référence Web Crypto API

CryptoKey.algorithm

The CryptoKey.algorithm read-only property is an opaque value containing all the information about the algorithm related to the key.
API CryptoKey Property Read-only Reference Référence Web Crypto API

CryptoKey.extractable

The CryptoKey.extractable read-only property that indicates if the raw material key can be extracted, for example for archiving it.
API CryptoKey Property Read-only Reference Référence Web Crypto API

CryptoKey.type

The CryptoKey.type read-only property that indicates the type of the key: if it is the key for a symmetric algorithm ("secret") or for an asymmetric algorithm ("public" or "private", depending of its purpose).
API CryptoKey Property Read-only Reference Référence Web Crypto API

CryptoKey.usages

The CryptoKey.usages read-only property is an array of enumerated that indicates the purposes of the key.
API CryptoKey Property Read-only Reference Référence Web Crypto API

RandomSource

RandomSource represents a source of cryptographically secure random numbers. It is available via the Crypto object of the global object: Window.crypto on Web pages, WorkerGlobalScope.crypto in workers.
API Interface RandomSource Reference Référence Web Crypto 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