Skip to content

BeechCMS


BeechCMS / @beechcms/core / sha256hex

Function: sha256hex() ​

sha256hex(value): Promise<string>

Computes an un-salted SHA-256 hex digest of a string value. Used for basic digest operations.

Parameters ​

value ​

string

The raw string value to hash.

Returns ​

Promise<string>

A Promise resolving to a 64-character hex string.