Various password hashing methods

dev-master / 0.1.x-dev 2015-06-19 02:23 UTC


Latest Version Software License Build Status Code Coverage Quality Score Total Downloads

Various password hashing methods.


Via Composer

$ 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



The MIT License (MIT). Please see License File for more information.