PHP 5.5 should reduce password sloppiness
PHP icon Version 5.5 of PHP will come with an API designed to allow administrators and developers to safely store passwords. With its help, developers will be able to use just one line of code to generate a secure salted password hash using bcrypt.
$hash = password_hash($password, PASSWORD_DEFAULT);
A salt is not needed; it will be auto-generated by the API if not present and added as a random component to the password. Verifying the password is equally easy:
password_verify($password, $hash);
Tags:
Read more: PHP 5.5 should reduce password sloppiness
Story added 14. September 2012, content source with full text you can find at link above.