Various password hashing methods
Various password hashing methods.
$ composer require guardianphp/crypt
This library is inspired by Zend Crypt. The reason this library is created is that there is more lightview solutions than Zend's implementation. But you can still use it with the Zend hashers. To do that you have to install it first.
$ composer require zendframework/zend-crypt
Optionally you can use phpseclib crypt methods which must be installed manually.
$ composer require phpseclib/phpseclib
Pikirasa is also supported.
$ composer require vlucas/pikirasa
Usage of hasher is simple:
use Guardian\Crypt\Hasher\SomeMethod; // implements Guardian\Crypt\Hasher interface $hasher = new SomeMethod; $encrypted = $hasher->hash('password'); // returns true or false $verified = $hasher->verify('password', $encrypted);
$ phpspec run
If you discover any security related issues, please contact us at email@example.com.
The MIT License (MIT). Please see License File for more information.