This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Generate a random alphanumeric password | |
* precondition: len must be <= 32 | |
* param len: length of the random password | |
* param enforce_rules: enforce password security rules | |
* returns: the random password | |
**/ | |
public static function generateRandomPassword($len=8, $enforce_rules = false) | |
{ | |
$count = 0; |