Skip to content

security.sha1hmac ​

Generate a SHA1 HMAC hash.

js
security.sha1hmac(secret, value)

Parameters ​

ParameterTypeDescription
secretstringSecret to hash value.
valuestringValue to hash.

Returns ​

string

Examples ​

js
const hash = security.sha1hmac("mySecret", "Hello"); // "YuM0lx19wbPh15dGIJ0q/9EG7RI="