DigestContext
Represents a context for computing cryptographic digests (hashes). This class provides functionality for generating fixed-size digests of arbitrary data.
Extends
BaseCryptoClass
Methods
digest()
digest(
data
):Promise
<ArrayBuffer
>
Computes the cryptographic digest of the provided data.
Parameters
data
ArrayBuffer
The input data to be hashed.
Returns
Promise
<ArrayBuffer
>
A promise that resolves to the computed digest as an ArrayBuffer.
Last updated: Sep 30, 2025