HMAC_SHA256

Converts text using SHA256 and a secret key.

Parameter List

Syntax
HMAC_SHA256(textkey
[output]
)
text

The text to be converted.

key

The secret key shared between the sender and the receiver.

[optional] output

The function returns a hexadecimal value by default. Set the parameter to 0 to keep the result in hexadecimal format, or to 1 to return the result as Base64-encoded text.

Examples

HMAC_SHA256("Rows", "my_secret_key", 0) returns fc1cd1ee00f47d30d967a6c9f7d2bce16c3279e5365ee33d5313616bf39d9876