Computes the SHA-256 hash of the input data.
The data to hash.
A promise that resolves to the SHA-256 hash as a byte array.
const hash = await sha256(new Uint8Array([1, 2, 3])) Copy
const hash = await sha256(new Uint8Array([1, 2, 3]))
Computes the SHA-256 hash of the input data.