2017 © Pedro PelĂĄez
 

library hashing

Password hashing

image

xaamin/hashing

Password hashing

  • Wednesday, May 25, 2016
  • by xaamin
  • Repository
  • 1 Watchers
  • 1 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Password Hasher

Installation

Require the package using composer, (*1)

    composer require xaamin/hashing

Usage

You may hash a password by calling the make method on Hash instance, (*2)

    use Xaamin\Hashing\Hash;

    $password' => Hash::make('plain-text');

The check method allows you to verify that a given plain-text string corresponds to a given hash., (*3)

    if (Hash::check('plain-text', $hashedValue)) 
    {
        // The passwords match...
    }

By defautl this package uses the default PHP native hash implementation, it's the most secure way to hashing passwords and requires PHP 5 >= 5.5.0. Anyway, if you have PHP 5 < 5.5.0 you can use Bcrypt hashing algorithm. I suggest enable mcrypt or openssl PHP extension to generate secure random salt., (*4)

   Hash::setHasher(new Xaamin\Hashing\Strategies\BcryptHash);

The Versions

25/05 2016

dev-master

9999999-dev

Password hashing

  Sources   Download

MIT

The Requires

  • php >=5.0.0

 

The Development Requires

password hash

25/05 2016

v1.0.3

1.0.3.0

Password hashing

  Sources   Download

MIT

The Requires

  • php >=5.0.0

 

The Development Requires

password hash

30/11 2015

v1.0.0

1.0.0.0

Password hashing

  Sources   Download

MIT

The Requires

  • php >=5.0.0

 

The Development Requires

password hash