Class “SubtleCrypto”
Provides a subset of the cryptographic functions in the SubtleCrypto W3C standard.
| Type: | SubtleCrypto extends Object |
| Constructor: | private |
| Singleton: | No |
| Namespace: | global |
| Direct subclasses: | None |
| JSX Support: | No |
Methods
digest(algorithm, data)
Provides the digest value of the given data as an ArrayBuffer. Fo this the method uses the hashing algorithms provided by the operating system.
| Parameter | Type | Description |
|---|---|---|
| algorithm | 'SHA-1' |
A string defining the hash function to use. |
| data | TypedArray | ArrayBuffer |
The data to be digested. |
Returns: Promise<ArrayBuffer>