note 101319 deleted from function.crypt by danbrown

From: Date: Thu, 09 Dec 2010 16:20:14 +0000
Subject: note 101319 deleted from function.crypt by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-174754@lists.php.net to get a copy of this message
Note Submitter: sforsman ---- @fmaz008: It's not a problem with the actual function. If you are not supplying a salt (the second parameter), the function will use Standard DES. There lies the actual problem. What you are proving, is actually mentioned in the beginning of the description of this function. If you want to hash passwords properly with this function, supply a salt like '$2a$08$<insert 22 random characters here>$'. This will make the function use Blowfish-based bcrypt, which is very strong for password hashing. Just make sure you have PHP 5.3.

« previous php.notes (#174754) next »