koenhoeijmakers/laravel-argon2
Composer 安装命令:
composer require koenhoeijmakers/laravel-argon2
包简介
Argon2 implementation
README 文档
README
Pull request #21885 on the framework's repository has made this package obsolete as Argon2 hashing will be added in Laravel's [5.6] release, therefore this package will only support from version [5.0] to [5.5].
Laravel Argon2
A drop-in Argon2 implementation for Laravel.
(which will be usable from PHP 7.2 if compiled with the --with-password-argon2 option)
As the RFC states, the Argon2d variant will not be implemented into php, and therefore we can call our package Argon2 as an alias to Argon2i.
Disclaimer
Please be careful while changing the HashServiceProviders, if your application is already up and running and in some way relies on bcrypt, then it is probably a bad idea, as this replaces the standard bcrypt functionality from your Laravel installation. (given that it is replaced by Argon2)
Installation
Require the package.
composer require koenhoeijmakers/laravel-argon2
Search inside the config/app.php for the Illuminate\Hashing\HashServiceProvider::class and replace it with the KoenHoeijmakers\LaravelArgon2\HashServiceProvider::class.
'providers' => [ //... //Illuminate\Hashing\HashServiceProvider::class, KoenHoeijmakers\LaravelArgon2\HashServiceProvider::class, //... ],
Usage
If you have replaced your HashServiceProvider with the provider delivered by this package, you may now use the laravel hash functionality the same way as you used to.
FAQ
Q: Can i use this package when there are bcrypt hashes in my database?
A: That is not a problem as these can still be verified.
Credits
koenhoeijmakers/laravel-argon2 适用场景与选型建议
koenhoeijmakers/laravel-argon2 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.4k 次下载、GitHub Stars 达 11, 最近一次更新时间为 2017 年 07 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 koenhoeijmakers/laravel-argon2 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 koenhoeijmakers/laravel-argon2 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1.4k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-07-22