Provides a bcrypt function for PHP.
To install Bcrypt, you must add it to the list of dependencies in your composer.json
file.
$ php composer.phar require kherge/bcrypt=2.*
$encoded = bcrypt('test');
// $2y$10$JKjL8xFIoy4rdQLw3j26L.zEFs9IWb3tGEsDElPkDmN/.ngm46zYu
echo 'Verified? ', bcrypt_verify('test', $encoded) ? 'Yes' : 'No', "\n";
// Verified? Yes
Please see the wiki for more detailed usage information.