RE: MD5 Hmac - What am I missing here?

2005-10-06 Thread Figy, Kam
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

Re: MD5 Hmac - What am I missing here?

2005-10-06 Thread Short Fuse Media
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

MD5 Hmac - What am I missing here?

2005-10-05 Thread Short Fuse Media
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 =

Re: MD5 Hmac - What am I missing here?

2005-10-05 Thread Howie Hamlin
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

Re: MD5 Hmac - What am I missing here?

2005-10-05 Thread Short Fuse Media
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