Jochem van Dieten wrote:
>michael.wright74 wrote:
>> $passwd = md5(md5($passwd) . $SALT); 
>> 
>> What would be the equivalent syntax in CF?
>
>password = Lower(Hash(Lower(Hash(passwd)) & SALT));

Er, I think you mean:

passwd = LCase(Hash(LCase(Hash(passwd,"MD5")) & SALT, "MD5"));

There's no Lower() in CFML. Also, the default mode of the Hash() function is a 
"CFMX compatibility" mode that uses who knows what algorithm. It's also 
possible that to duplicate the value PHP produces, one might need to specify 
the encoding to Hash(), as well.

Sixten

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259364
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to