Use {{hash}} to apply a cryptographic hash (e.g., MD5, SHA-256) to a string or field value, returning the result in the specified encoding format.
{{hash algorithm encoding field}}
-
algorithm: A supported hashing algorithm (e.g.,
"md5","sha256","sha1"). -
encoding: The output format of the hashed value (
"hex"or"base64"are most common). -
field: The actual data (literal or field reference) to be hashed.
Note
-
For additional functionality, see Using hashOptions.
-
Hash a record field with MD5 and base64
{{hash "md5" "base64" record.name}}If
record.nameis"Bob", this outputs an MD5 hash of"Bob"encoded in base64. -
SHA-256 hash in hex
{{hash "sha256" "hex" "HelloWorld"}}Produces a hex-encoded SHA-256 hash of the string
"HelloWorld".
Tip
-
Choose stronger algorithms (e.g., SHA-256) for better security over weaker ones like MD5.
-
Ensure the input field is a string or can be converted to one.
-
The hash output is irreversible—if you need keyed signatures (authentication), see the
hmachelper instead.