Re: Password Authentication

From: Date: Sun, 23 Mar 2003 01:11:59 +0000
Subject: Re: Password Authentication
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-140721@lists.php.net to get a copy of this message
You can use a static salt from within your application though. Jason Justin French wrote:
on 23/03/03 2:02 AM, trlists@clayst.com (trlists@clayst.com) wrote:
On 23 Mar 2003 Justin French wrote:
I just md5() the passwords, and reset them if needed... rather than retrieving. The advantage for me on this is that it's portable... md5() is part of the base PHP install, whereas the mcrypt stuff isn't (or wasn't).
Something like that was my inclination as it seems simpler. One could also md5 the combined user / PW string, so the hash doesn't correspond to a single password. Do you know why there is all the stuff in the docs about using random salts? That didn't make much sense to me.
That's in the user notes... ignor it... md5() does not have to be salted... infact, you WANT the md5() to be static... because you will compare the md5()'d password in the database with the md5()'d password that they submit on a form. Justin


« previous php.general (#140721) next »