sha256
sha256(
data):MaybePromiseLike<Uint8Array<ArrayBuffer>>
Defined in: packages/crypto-hash/src/sha2/sha256.ts:17
SHA-256 (FIPS 180-4). Prefers the Web Crypto kernel (crypto.subtle, real
Promise) when available; falls back to the TS kernel (synchronous, no
Promise allocation) otherwise. The choice is cached after the first call —
Web Crypto’s availability is an environment property, not a per-call one.
Parameters
Section titled “Parameters”Uint8Array<ArrayBuffer>
Returns
Section titled “Returns”MaybePromiseLike<Uint8Array<ArrayBuffer>>