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
HMACMD5
HMACMD5
HMACSHA1
HMACSHA256
HMACSHA384
HMACSHA512
utf-8
utf-8
iso-8859-1
windows-1252
us-ascii
shift_jis
iso-2022-jp
euc-jp
euc-kr
big5
euc-cn
utf-16
hmac("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.