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

README

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

Various password hashing methods.

Install

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

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);

Testing

$ phpspec run

Security

If you discover any security related issues, please contact us at security@guardianphp.org.

Credits

License

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