HmacSha256
Last updated
Last updated
The HmacSha256()
function calculates a MAC (message authentication code) on provided message using the SHA256 hash function and a key/secret, and returns the calculated MAC as a hexadecimal text string.
This function is NOT SQL compatible. For more information about SQL compatibility, see our documentation.
Hashed values cannot be decoded, usually you check an incoming value against a known value that you hash yourself and check if both values are identical, to verify correctness without knowing the actual value.
Returns a hexadecimal text representation of a message, which is hashed using the Sha265 function and the key/secret for additional calculation/hashing.
Returns Unknown
if one of the parameter values is unknown or outside the common valid boundaries.
Name | Type | Required | Description |
---|---|---|---|
key
text
a text with the secret key for HmacSha256 encryption
message
text
the message or content
returnbase64
yes/no
return result as base64 (if true)