dan142/laravel-hashing-mysql
最新稳定版本:v1.0.0
Composer 安装命令:
composer require dan142/laravel-hashing-mysql
包简介
README 文档
README
Laravel MySQL Hasher
Adds support for the password hashing algorithms used by MySQL's now-deprecated PASSWORD() and OLD_PASSWORD() functions to the Laravel Hasher. This is intended to assist in migration from these to more modern and secure algorithms.
Installation
Add the package with composer.
composer require dan142/laravel-hashing-mysql
Using as the default driver
Edit config/hashing.php and change the driver to either mysqlpassword or mysqloldpassword, depending on which you need.
'driver' => 'mysqlpassword',
Using independently of the default driver
You can specify the driver you'd like to use when using the Hash facade like so:
Hash::driver('mysqlpassword')->make("hash");
Hash::driver('mysqloldpassword')->make("hash");
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-01-15