1. Docs
  2. Formulas
  3. Functions

HMAC_SHA256

Converts text into a SHA-256 hash using a hash message authentication code (HMAC).

Categories: Hashing/Signing

Syntax

HMAC_SHA256(text, secret)

Examples

Example 1

Input

1
{
2
"my_action": {
3
"message": "This is a private message for your eyes only!"
4
}
5
}

Formula

HMAC_SHA256(my_action.message, CREDENTIAL.hmac_secret_key)

Output

"5979600ab547894b618706b1c28de6b6d4144c6cafc1286451aa04b7b83abe89"

Sample actions

Event Transform
My Action
Event Transform
HMAC_SHA256

Select an action to inspect

You can also click "Copy actions" and paste them in your Tines story to see how they work.

Was this helpful?