Thanks
I'm trying to encrypt payment information for a group using CyberSource.
I found documentation on encrypt() that specified using HMAC-SHAx (where x
could be 256). Got the same error.
http://help.adobe.com/livedocs/coldfusion/8/htmldocs/help.html?content=funct
ions_e-g_01.html. CF10 documentation for encrypt is not as useful
Since I don't have time to try every iteration that it could possibly be, I
finally gave up, found Ben Nadel's Crypto library and it worked out of the
box.
But really, Adobe do the documentation correctly.
HMAC
Creates Hash-based Message Authentication Code for the given string based on
the algorithm and encoding. 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.
The cryptographic hash function can be Message Digest 5 (MD5), Secure Hash
Algorithm (SHA), and so on.
See also
SessionInvalidate, Session Rotate.
Example
<h2>HMAC Test</h2>
<cfset x=hmac("Hi There","key1","HMACRIPEMD160")>
<cfoutput>#x#</cfoutput>
None of this tells me anything. Especially since I can't find any reference
to HMACRIPEMD160 (hoping that would lead me to something) other than that
HMAC documentation or some PDF's that are generated from the Wiki Pages and
the above mentioned CF8 page, which again lists HMAC-SHA256.
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359252