main.php645 chars22 lines
The generatePassword()
function generates a random string of 5 letters, 3 numbers and 1 special character. It first defines sets of characters to be used in the password, generates random strings of required length for each set, combines them and shuffles the final password.
gistlibby LogSnag