Skip to content

prostoroman/bcrypt

Repository files navigation

Bcrypt

Build Status

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.

About

A library for encoding strings using bcrypt.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages