Skip to content

Function: sha256()

ts
function sha256(input): Promise<string>;

Defined in: packages/core/src/introspection/canonicalize.ts:27

SHA-256 hash of a string, returned as lowercase hex.

Uses the Web Crypto API (crypto.subtle) for runtime agnosticism.

Parameters

ParameterTypeDescription
inputstringThe string to hash

Returns

Promise<string>

64-character hex digest