Skip to content

security.sha256 ​

Generate a SHA256 hash from a string.

js
security.sha256(value)

Parameters ​

ParameterTypeDescription
valuestringValue to hash.

Returns ​

string

Examples ​

js
const hash = security.sha256("Hello"); // "185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969"