Creates a keyed-hash message authentication code (HMAC), which can be used to verify authenticity and integrity of a message by two parties that share the key.
hmac(message, key [, algorithm] [, encoding] )
→ returns string
HMACMD5HMACMD5HMACSHA1HMACSHA256HMACSHA384HMACSHA512utf-8utf-8iso-8859-1windows-1252us-asciishift_jisiso-2022-jpeuc-jpeuc-krbig5euc-cnutf-16hmac("msg", "secret", "HMACSHA256")
Expected Result: FE4F9C418F683F034F6AF90D1DD5B86AC0355DD96332C59CC74598D0736107F6
Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.