Unless you must use java, CF6.1's hash() function does MD5.
-Original Message-
From: Short Fuse Media [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 05, 2005 2:54 PM
To: CF-Talk
Subject: Re: MD5 Hmac - What am I missing here?
Hmm, didn't seem to affect it... question, would even
Fuse Media [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 05, 2005 2:54 PM
To: CF-Talk
Subject: Re: MD5 Hmac - What am I missing here?
Hmm, didn't seem to affect it... question, would even Bin2Hex be
apropriate in this instance? Or would it be better to loop through the
byte array itself
For some odd reason I took it upon myself to write an HMAC generator in
cfml/java on MX 6.1 (don't ask, I'm masochistic like that) - and so far
I believe I've gotten to this point:
cfscript
keyString = myKey;
dataString = HelloWorld;
messageDigest =
Try this:
messageDigest = createObject(java,java.security.MessageDigest);
messageDigest = messageDigest.getInstance(MD5);
messageDigest.reset();
messageDigest.update(keyString.getBytes());
HTH,
--
Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc. - www.CoolFusion.com
Hmm, didn't seem to affect it... question, would even Bin2Hex be
apropriate in this instance? Or would it be better to loop through the
byte array itself and make the hex string per byte? Which leads me to my
next question - how would one accomodate this byte to hex conversion in
cf w/out the
5 matches
Mail list logo