HMac
10
4

Overview ColdFusion Open BlueDragon Lucee

Hash-based Message Authentication Code (HMAC) is used to verify the data integrity and authenticity of a messagetransmitted. It involves a cryptographic hash function in combination with a secret key. The cryptographic hashfunction can be Message Digest 5 (MD5) or Secure Hash Algorithm (SHA)

Attributes

Name Required Type Default Description
10
4
algorithm No String The hash algorithm to use, MD5 or SHA1
10
4
encoding No String Encoding to use for data and key
10
4
key Yes String Key to use for hashing and message integrity, Accepted data types are String or Byte[]
10
4
message Yes Any Message data. Data, Accepted data types are String or Byte[]