ksungcaya/phpass-laravel
最新稳定版本:1.4
Composer 安装命令:
composer require ksungcaya/phpass-laravel
包简介
PHPass Hashing integration to Laravel 5
README 文档
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.
统计信息
- 总下载量: 2.23k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-08-05