News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
Hashing Passwords with the PHP 5.5 Password Hashing API
September 17, 2013 @ 13:38:00

On the SitePoint PHP blog today there's a new tutorial walking you through a new feature of PHP 5.5 that can help you create more secure password hashes easily - the Password Hashing API.

Using bcrypt is the currently accepted best practice for hashing passwords, but a large number of developers still use older and weaker algorithms like MD5 and SHA1. Some developers don't even use a salt while hashing. The new hashing API in PHP 5.5 aims to draw attention towards bcrypt while hiding its complexity. In this article I'll cover the basics of using PHP's new hashing API.

He starts by introducing the functions involved to create, verify get general information and see if the hash needs to be regenerated. For each function he provides a summary of what it does and some sample code putting it to use. If you haven't upgrade to PHP 5.5 yet and still want to use it, consider adding this library to your application. It provides the same interface, just in a "userland" implementation.

0 comments voice your opinion now!
password hashing api tutorial introduction passwordcompat

Link: http://www.sitepoint.com/hashing-passwords-php-5-5-password-hashing-api

blog comments powered by Disqus

Similar Posts

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 12)

PHPBuilder.com: Using the ADOdb library with Oracle and PHP

Daniel Cousineau's Blog: Zend Framework Module Init Script (Controller Plugin)

NetTuts.com: Setting Up User Authentication in Laravel Using Confide

Sameer Borate's Blog: Taking screenshots of websites in PHP


Community Events





Don't see your event here?
Let us know!


api interview library package deployment zendserver language bugfix voicesoftheelephpant podcast opinion introduction laravel install community series release symfony unittest framework

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework