wepesi/password-generator
最新稳定版本:v0.1.1
Composer 安装命令:
composer require wepesi/password-generator
包简介
generate strong password, salt and hash
README 文档
README
auto generate password, salt and hash.
Installation
composer require password-generator
Integration
$simple_string = PasswordGenerator::randomString(); $strong_string = PasswordGenerator::randomString(10,true); echo $simple_string . PHP_EOL; echo $strong_string . PHP_EOL; //eg: Lfw8oPDUhl //eg: N[:Lspg+Lw $salt = PasswordGenerator::salt(); echo $salt . PHP_EOL; // eg: 505ff561ca2a0d846e5713b6b00f6b38 $simple_string_no_salt = PasswordGenerator::make($simple_string); echo $simple_string_no_salt . PHP_EOL; // eg: 1fbbd6ad4db19d296e6d9680f28829fbb23bb63b6447f8ace9596ce258a073ed $simple_string_salt = PasswordGenerator::make($simple_string,$salt); echo $simple_string_salt . PHP_EOL; // eg: 8553b800cd2dcd2646c7535e8675c7892872edf508440e268c9017fd15dbc93a
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2023-03-22