joomla/joomla-platform — pull request #1472 by ianmacl (2012-08-19 03:01:44+00:00)
Title: Add password hashing interface and basic implementation.

This will provide basic password hashing capabilities using a straightforward and easy to use interface.

Use is easy:
$hasher = new JCryptPasswordSimple();

$hash = $hasher->create('MyPasswordHere', JCryptPassword::BLOWFISH);

------
$isPasswordCorrect = $hasher->verify('MyPasswordHere', $hash);

The basic implementation supports BLOWFISH, MD5 and the legacy Joomla password format. For more complex requirements an alternative implementation of the interface can be supplied and used.