Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1
🔐 A simple way to generate random passwords. Compatible with PHP 5.6+
License
pH7Software/Secure-Password-Generator
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A simple way to generate random cryptographically secure passwords.
composer require ph7software/secure-password-generator
- PHP 5.6 and higher 🎉
usePH7\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 tofalse
usePH7\Generator\Password;// The password won't contain any special characters such as -, _, ~, |, %, ^, !, $, #, @, and ?echo Password::generate(Password::DEFAULT_LENGTH,false);
You can use the constantPassword::DEFAULT_LENGTH which contains12 as the default value
usePH7\Generator\Password;// By default, it generates a 12-length passwordecho Password::generate(Password::DEFAULT_LENGTH);
Without argument, the function will also generate a 12-character password.
usePH7\Generator\Password;// By default, it generates a 12-length passwordecho Password::generate();
Pierre-Henry Soria, a highly passionate, zen & pragmatic software engineer 😊
pH7Builder is using this package for generating default passwords to users.
PHP Password Generator is generously distributed under theMIT.
About
🔐 A simple way to generate random passwords. Compatible with PHP 5.6+
Topics
Resources
License
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.