Skip to content

security.sha1

Generate a SHA1 hash from a string.

js
security.sha1(str);
security.sha1(str);

Parameters

  • str - The string to hash.

Example

js
let hash = security.sha1("Hello"); // "f7ff9e8b7bb2e09b70935a5d785e0cc5d9d0abf0"
let hash = security.sha1("Hello"); // "f7ff9e8b7bb2e09b70935a5d785e0cc5d9d0abf0"