MoneyWorks Manual
HMAC (data, key, hash)
Result Type: Text
Definition: Returns a string containing the HMAC (keyed-hash message authentication code) for the given data and key and named hash function. The hash may be one of "sha256", "sha512", "sha1", or "md5" (case-sensitive). An HMAC-SHA1 is required for the OAuth1 protocol. See also Checksum if you just need a simple hash.
The result is hex-encoded. If you need the hash in binary form (say to re-encode as Base64), you can use HexDecode, provided you are running v9.1 or later.
Example: HMAC("my message", "my key", "sha256")
Result: "59847ff865a5613884824dd37a34a8c0862d9ce76b9a1baa150921b447dd8760"
See Also:
Checksum: Cryptographic checksum of a string