Skip to content

security.sha256

Generate a SHA256 hash from a string.

js
security.sha256(str);

Parameters

  • str - The string to hash.
js
let hash = security.sha256("Hello"); // "185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969"