Re: hash() encryption

2006-11-07 Thread Sixten Otto
Rick Root wrote: > According to livedocs, the default is MD5 in CFMX 7. Now that I look again, it actually designates *both* as the default (ain't that just par for the course!). But the livedocs are very clear about the existence of a 6/6.1 compatibility mode: * CFMX_COMPAT: Generates a hash s

Re: hash() encryption

2006-11-07 Thread Tom Chiverton
On Tuesday 07 November 2006 13:11, Rick Root wrote: > > 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. > >

Re: hash() encryption

2006-11-07 Thread Rick Root
Sixten Otto wrote: > > 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. According to livedocs, the default is MD5

Re: Re: hash() encryption

2006-11-06 Thread michael.wright74
Sixten, Many thanks - that's exactly it. > > From: Sixten Otto <[EMAIL PROTECTED]> > Date: 2006/11/06 Mon PM 08:10:24 GMT > To: CF-Talk > Subject: Re: hash() encryption > > Jochem van Dieten wrote: > >michael.wright74 wrote: > >> $passwd = md5(m

Re: re: hash() encryption

2006-11-06 Thread michael.wright74
gt; Date: 2006/11/06 Mon PM 08:09:49 GMT > To: CF-Talk > Subject: re: hash() encryption > > Rick, > > To be honest I thought it would be that, however it doesn't return the > expected value. > > I'm going to have to look again at the original php code and

Re: hash() encryption

2006-11-06 Thread Sixten Otto
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 Lowe

Re: hash() encryption

2006-11-06 Thread Jochem van Dieten
michael.wright74 wrote: > > $passwd = md5(md5($passwd) . $SALT); > > $SALT is a random generated 3 charachter value. > > What would be the equivalent syntax in CF? password = Lower(Hash(Lower(Hash(passwd)) & SALT)); Jochem ~|

re: hash() encryption

2006-11-06 Thread michael.wright74
do they? Thanks, Michael -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: 06 November 2006 19:58 To: CF-Talk Subject: Re: hash() encryption [EMAIL PROTECTED] wrote: > > $passwd = md5(md5($passwd) . $SALT); > > What would be the equivalent syntax in

Re: hash() encryption

2006-11-06 Thread Rick Root
[EMAIL PROTECTED] wrote: > > $passwd = md5(md5($passwd) . $SALT); > > What would be the equivalent syntax in CF? Pretty straightforward. Rick ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,