digest.hmac_sha512()

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

Format

STRING
digest.hmac_sha512(STRING key, STRING input)

Examples

1
2
3
declare local var.hmac_sha512 STRING;
set var.hmac_sha512 = digest.hmac_sha512("key", "input");
# var.hmac_sha512 is now "0x03ad77c817f32669cccf38dac915d4e55a16833b1ca685979a9df521a05235978090043c3da402dad365ed39ac05af4864a804451861f4b4df7680834c6d4f95"