Documentation / @zerotal/core / index / sha256Hex
Function: sha256Hex()
sha256Hex(
input):string
Defined in: support/crypto.ts:37
SHA-256 digest of input, hex-encoded. Synchronous, via Bun.CryptoHasher.
This is the canonical helper for token-hash storage (remember tokens,
reset tokens, OTPs, PATs, recovery codes): store sha256Hex(token),
never the token itself.
Parameters
input
string | Uint8Array<ArrayBufferLike>
Returns
string