Skip to content

Welshman Docs / @welshman/lib / sha256

Function: sha256() ​

sha256(data): Promise<string>

Defined in: packages/lib/src/Tools.ts:1608

Computes SHA-256 hash of binary data

Parameters ​

data ​

Binary data to hash

ArrayBuffer | Uint8Array<ArrayBufferLike>

Returns ​

Promise<string>

Promise resolving to hex-encoded hash string