ksungcaya/phpass-laravel

PHPass Hashing integration to Laravel 5
2,228 3
Install
composer require ksungcaya/phpass-laravel
Latest Version:1.4
PHP:>=5.4.0
License:MIT
Last Updated:Oct 8, 2019
Links: GitHub  ·  Packagist
Maintainer: ksungcaya

#PHPass Hashing integration for Laravel 5

Build Status HHVM Status

A PHPass Hasher integration to Laravel 5. This package overrides the default Bycrypt Hasher of Laravel and uses the Phpass Library from Openwall for password hashing and checking methods.

If you are using Laravel 4, try out the old implementation here.

Installation

Install package through Composer.

"require": {
    "ksungcaya/phpass-laravel": "~1.0"
}

Then run composer update

$ composer update

Update config/app.php and include a reference to this package's service provider in the providers array.

'providers' => [
    Sungcaya\Phpass\PhpassHashServiceProvider::class
]

Usage

Now that PHPass is installed in Laravel, you can now use the normal Hash methods.

Hash::make('secret');
Hash::check('secret', $hashedPassword);

That's it!

Please refer to Laravel documentation on Hashing to know more about the Hash methods.

Related Packages

selfsimilar/laravel-d7-password

Laravel package that checks and creates Drupal 7 password hashes

4,769 4
wp-kit/hashing

A wp-kit component that handles password hashing

7,453 0
mikemclin/laravel-wp-password

Laravel package that checks and creates WordPress password hashes

3,689,027 86
robclancy/laravel4-hashing

Package for when you can't use Bcrypt in Laravel 4.

1,783 30
schuppo/password-strength

This package provides a validator for ensuring strong passwords in Laravel 4 app...

2,767,535 143