security.sha256hmac
Generate a SHA256 HMAC hash.
js
security.sha256hmac(key, str);
security.sha256hmac(key, str);
Parameters
key
- A secret key (string).str
- The string to hash.
js
let hash = security.sha256hmac("mySecret", "Hello"); // "wXJ+DzC4r15MVx/w0i0PXezGMBjy1uN2rBbcBNBuSCw="
let hash = security.sha256hmac("mySecret", "Hello"); // "wXJ+DzC4r15MVx/w0i0PXezGMBjy1uN2rBbcBNBuSCw="