Skip to content

security.sha1 ​

Generate a SHA1 hash from a string.

js
security.sha1(value)

Parameters ​

ParameterTypeDescription
valuestringValue to hash.

Returns ​

string

Examples ​

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