Re: php validate user password

From: Date: Mon, 09 Feb 2009 14:23:51 +0000
Subject: Re: php validate user password
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-287957@lists.php.net to get a copy of this message
2009/2/9 Stuart <stuttle@gmail.com>: > 2009/2/9 Michael Kubler <mdkknd@gmail.com>: >> These days SHA should really be used instead of MD5, and you should be >> SALTing the password as well. >> Here's a great guide : >> http://phpsec.org/articles/2005/password-hashing.html > > Good advice. Absolutley. I used mysqls md5() function only as an example. > I would also advise against stripping and trimming > anything from passwords. By removing characters you're significantly > reducing the number of possible passwords. Surely, the stripping should only be done when when magic_quotes is enabled! (e.g. Your Server makes \' out of '). Trimming could be left out but it minimizes user errors and users pretending to know their password. (Like copy/paste from a passwords-file with added spaces on the end, etc..) Regards

« previous php.general (#287957) next »