hash
Description: Returns a hex encoded string using the hash algorithm provided. This can be used to generate unique keys.
Subject Type: String
Arguments:
-
algorithm : An algorithm to hash value. Supports one of [SHA-384, SHA-224, SHA-256, MD2, SHA, SHA-512, MD5]. Warning: MD2, MD5, and SHA (SHA-1) should not be considered cryptographically secure (https://csrc.nist.gov/projects/hash-functions/nist-policy-on-hash-functions).
Return Type: String
Examples: We can hash an attribute named "payload" by using the Expression ${payload:hash('SHA-256')}
If the attribute payload had a value of "string value" then the Expression ${payload:hash('SHA-256')}
will return "9b6a1a9167a5caf3f5948413faa89e0ec0de89e12bef55327442e60dcc0e8c9b".