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
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.
>
>
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
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
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
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
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
~|
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
[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,
9 matches
Mail list logo