LOG IN SIGN UP
Documentation

digest.hmac_sha1()

Hash-based message authentication code using SHA-1. Returns a hex-encoded string prepended with 0x.

Format

STRING
digest.hmac_sha1(STRING key, STRING input)

Examples

1
2
3
declare local var.hmac_sha1 STRING;
set var.hmac_sha1 = digest.hmac_sha1("key", "input");
# var.hmac_sha1 now contains "0x8513bb355076cce2ae5eb9f399ab5cafdba7c8a2"