Generates password that includes at least one symbols from each set:
l - lower case characters
u - upper case characters
d - digits
s - special characters
public static GenerateSecurePassword ( integer $length = 16, array $sets = null, array $enabledSets = null ) : string | ||
$length | integer | optional Password length |
$sets | array | optional User (re-)defined characters sets |
$enabledSets | array | optional Names of enabled sets, if null — all sets are enabled |
리턴 | string | Returns generated password |