HMAC Encryption Example

Hash-based Message Authentication Code (HMAC) is used to verify the data integrity and authenticity of a message transmitted. It involves a cryptographic hash function in combination with a secret key. HMAC encryption isn't native to coldfusion until CF10. The HMAC encryption algorithms are available for use in the encrypt() function on earlier versions of CF, but only in the enterprise levels.

Please enter the text to encode, the encoding key, the encryption method, and the type of encoding