I need to create an MD5 HMAC Digest for authentication - alas, CF6.1 
doesn't do this - it only creates a one way MD5 hash.

Erik Yowell
Short Fuse Media, Inc.
[EMAIL PROTECTED]

Figy, Kam wrote:

>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());
>> 
>>
>>    
>>
>
>
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220278
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

Reply via email to