darkindy/spring-password-utils
Composer 安装命令:
composer create-project darkindy/spring-password-utils
包简介
PHP utilities for encoding and validating passwords in the same way as Spring Security's StandardPasswordEncoder in Java.
README 文档
README
PHP utilities for encoding and validating passwords in the same way as Spring Security's StandardPasswordEncoder in Java.
Features
- Encoding a password hash in the same way as Spring Security's StandardPasswordEncoder
- Validating a password against a hash generated from Java or by this library itself
Composer Installation
This is a PSR-4 autoloadable library. Please use Composer to add the library to your project:
{
"require": {
"darkindy/spring-password-utils": "1.0.0"
}
}
Troubleshooting
In case you encounter the error message "Call to undefined function openssl_random_pseudo_bytes()" when encoding a password with an auto-generated salt, please enable openssl by uncommenting the following lines in your php.ini:
extension_dir="ext"
extension=php_openssl.dll
统计信息
- 总下载量: 30
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-09-16