hmac_sha256
host callCapy
function hmac_sha256(key : string, value : string) string
Description
hmac_sha256() returns 32 raw HMAC-SHA256 bytes. Use hex(hmac_sha256(key, value)) when you need lowercase hexadecimal text.
Parameters
key : secret key bytes
value : message bytes
Return Values
A raw 32-byte HMAC-SHA256 value.
Example
Capy
print(length(hmac_sha256("key", "message")), "\n")