ph7software/secure-password-generator
最新稳定版本:1.3.1
Composer 安装命令:
composer require ph7software/secure-password-generator
包简介
A simple way to generate random cryptographically secure passwords for PHP 5.6+
关键字:
README 文档
README
📄 Description
A simple way to generate random cryptographically secure passwords.
🛠 Installation (with Composer)
composer require ph7software/secure-password-generator
🛠 Server Requirement
- PHP 5.6 and higher 🎉
🎮 Usage
use PH7\Generator\Password; echo Password::generate(10); // Generate a 10-length password
By default, the password will contain special characters. You can disable them by mentioning the second argument to false
use PH7\Generator\Password; // The password won't contain any special characters such as -, _, ~, |, %, ^, !, $, #, @, and ? echo Password::generate(Password::DEFAULT_LENGTH, false);
You can use the constant Password::DEFAULT_LENGTH which contains 12 as the default value
use PH7\Generator\Password; // By default, it generates a 12-length password echo Password::generate(Password::DEFAULT_LENGTH);
Without argument, the function will also generate a 12-character password.
use PH7\Generator\Password; // By default, it generates a 12-length password echo Password::generate();
😋 Who cooked it?
Pierre-Henry Soria, a highly passionate, zen & pragmatic software engineer 😊
🤗 Used By...
pH7Builder is using this package for generating default passwords to users.
⚖️ License
PHP Password Generator is generously distributed under the MIT.
统计信息
- 总下载量: 941
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-09-28