Skip to content

BTMS-GmbH/SlickPassword

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

SlickPassword

SlickPassword is a lightweight Service class to generate pronounceable passwords with PHP. You can use it for either a password manager application, generate initial passwords or what ever.

Functions

SlickPassword generates pronounceable passwords with a user defined length. The Passwords consists of a pronounceable string, Numbers ans Special Characters. The String can generated for english or germany language. The special characters are optimized for english, german, english IOS and german IOS Keyboard layouts. The three groups of signs (string, number, special characters) are permuted randomly to get a higher entropy.

Example

$slickPassword = new phpshaper\slickauth\SlickPassword();
// US Password, total lenght 16 signs. 3 Numbers and 3 special characters
echo $slickPassword->generateUS (16, 3, 3). " ";
// US Password, optimized for IOS , total lenght 16 signs. 2 Numbers and 4 special characters
echo $slickPassword->generateUSiOS (16, 2, 4). " ";
// DE Password, total lenght 16 signs. 1 Number and 1 special characters
echo $slickPassword->generateDE (16, 1, 1). " ";
// DE Password, optimized for IOS, total lenght 16 signs. 3 Numbers and 4 special characters
echo $slickPassword->generateDEiOS (16, 3, 4). " ";

Prerequisites

PHP 5.3

Reference

History

I created this class in 2009 within a Java/Spring Project. Well, after ten years of self-destructive Java addiction, I´am now detoxified. I started to scan my codebase and found this little usefull class and ported it to php.

About

Generate pronounceable passwords with PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages