dev-master
9999999-dev https://github.com/davidkuridza/php-bcrypt-wrapperSimple PHP bcrypt wrapper
MIT
The Requires
- php >=5.3.0
The Development Requires
by David Kuridža
password hash bcrypt
Wallogit.com
2017 © Pedro Peláez
Simple PHP bcrypt wrapper
PHP bcrypt is a wrapper to simplify the use of bcrypt algorithm in PHP., (*2)
Copy Bcrypt/Bcrypt.php to location on the file system where needed., (*3)
To test whether Bcrypt works in your environment, you can simply run PHPUnit tests from root
directory:, (*4)
$ phpunit
An Ant build script is provided to simplify setting up the environment in case you would like to
contribute. Following targets are available:, (*5)
$ ant
Buildfile: build.xml
help:
[echo] Usage: ant [target [target1 [target2] ...]]
[echo] Targets:
[echo] help print this message
[echo] build setup env
[echo] clean clean up and create artifact directories
[echo] tests run unit tests
Running $ ant build will invoke clean and tests., (*6)
include 'Bcrypt.php'; // hash password before storing it $hashed = Bcrypt::hash($password); // check password by comparing it to its hashed value $check = Bcrypt::check($password, $hashed); // use a stronger salt $salt = Bcrypt::salt(24); // 2^24 iterations $hashed = Bcrypt::hash($password, $salt);
Feel free to contact me via david@kuridza.si or twitter., (*7)
Simple PHP bcrypt wrapper
MIT
password hash bcrypt