LOG IN SIGN UP
Documentation

digest.hmac_sha256()

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

Format

STRING
digest.hmac_sha256(STRING key, STRING input)

Examples

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