Class: SHA256HashingAlgorithm

SHA-256 hashing algorithm implementation.

Implements

Constructors

Constructor

new SHA256HashingAlgorithm(): SHA256HashingAlgorithm

Returns

SHA256HashingAlgorithm

Methods

hash()

hash(data): Promise<ArrayBuffer>

Hashes the data using the SHA-256 algorithm.

Parameters

======= data

string | ArrayBuffer | Uint8Array<ArrayBufferLike>

The data to hash.

Returns

Promise<ArrayBuffer>

The hash of the data.

Implementation of