prostoroman / bcrypt
A library for encoding strings using bcrypt.
dev-master
2013-05-02 20:40 UTC
Requires
- php: >=5.3.3
Suggests
- php: >=5.3.7
This package is not auto-updated.
Last update: 2025-01-28 05:01:21 UTC
README
Provides a bcrypt function for PHP.
Installation
To install Bcrypt, you must add it to the list of dependencies in your composer.json
file.
$ php composer.phar require kherge/bcrypt=2.*
Example
$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.