Ask a Question related to Macromedia ColdFusion, Design and Development.
- maddiel #1
authorize.net fingerprint generation with HMAC
I am trying to integrate my website with authorize.net's payment gateway (my
first time integrating with a gateway), and to do this I need to generate a
fingerprint to send to them as a hidden field. The fingerprint is suppose to be
a hash generated using an HMAC-MD5 algorithm on a few specified values:
<input type="hidden" name="x_login" id="x_login" value="loginName" />
<input type="hidden" name="x_fp_sequence" value="461">
<input type="hidden" name="x_fp_timestamp" value="67897654" />
<input type="hidden" name="x_amount" id="x_amount" value="10.98" />
<input type="hidden" name="x_tran_key" value="ab349dh47255">
The example I've found of how to generate this fingerprint is:
Fingerprint = HMAC-MD5 ("login^461^67897654^10.98^", "ab349dh47255")
Then it notes: "...the fields are concatenated and separated by the " ^ "
character. Here, the transaction key is the cryptographic key used in the HMAC
I'm not what kind of script that is, but I'm wondering how I could convert
that to coldfusion. My immediate thought was to use the Hash() function, but
how then might I account for the "cryptographic key" - "ab349dh47255"?
- I'm trying to post an AIM transaction to Authorize.net. I get this error: The following errors have occurred. (92) The gateway no longer supports...
- I am planning a website which reqires this feature: it allows registered users to upload and/or download files (like *.doc, *.ppt etc.) but not...
- Hi all. I need to implement a Hashed Message Authentication Code based on the SHA1 algorithm, that is equivalent to OpenSSL's "libeay32"-library....
- Hello all Is HMAC-MD5 supported on the .NET 1.1 framework? Some of the information that I have come across seems like it indicates that it is not...
- Hi, This idea for the next generation of CGI has me thinking (see http://rubygarden.org/ruby?NextGenerationCGI). It seems that CGI would be best...
- tconley #2
Re: authorize.net fingerprint generation with HMAC
There is a coldfusion hmac implementation by Tim McCarthy here.
It should do what you need.