security.sha1hmac
Generate a SHA1 HMAC hash.
js
security.sha1hmac(key, str);
security.sha1hmac(key, str);
Parameters
key
- A secret key (string).str
- The string to hash.
js
let hash = security.sha1hmac("mySecret", "Hello"); // "YuM0lx19wbPh15dGIJ0q/9EG7RI="
let hash = security.sha1hmac("mySecret", "Hello"); // "YuM0lx19wbPh15dGIJ0q/9EG7RI="