ksungcaya / phpass-laravel
PHPass Hashing integration to Laravel 5
Installs: 2 225
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 5
Forks: 7
Open Issues: 0
Requires
- php: >=5.4.0
- hautelook/phpass: *
- illuminate/contracts: 5.0.x|5.1.x|5.2.x|5.3.x|5.4.x|5.5.x|5.6.x|5.7.x
- illuminate/support: 5.0.x|5.1.x|5.2.x|5.3.x|5.4.x|5.5.x|5.6.x|5.7.x
Requires (Dev)
- phpspec/phpspec: ~2.0
This package is auto-updated.
Last update: 2024-11-13 16:08:43 UTC
README
#PHPass Hashing integration for Laravel 5
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.