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 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 byte datatype?
-Erik
Howie Hamlin wrote:
>Try this:
>
>messageDigest = createObject("java","java.security.MessageDigest");
>messageDigest = messageDigest.getInstance("MD5");
>messageDigest.reset();
>messageDigest.update(keyString.getBytes());
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220259
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54