Nice little PHP function that will generate a completely random password.
/* * The letter l (lowercase L) and the number 1 have been removed, as they can be mistaken for each other */ function createRandomPassword() { $chars = "abcdefghijkmnopqrstuvwxyz023456789"; srand((double)microtime()*1000000); $i = 0; $pass = '' ; while ($i <= 7) { $num = rand() % 33; $tmp = substr($chars, $num, 1); $pass = $pass . $tmp; $i++; } return $pass; } // Usage $password = createRandomPassword(); echo "Your random password is: $password";
Recent comments
9 weeks 4 days ago
10 weeks 1 day ago
14 weeks 6 days ago
14 weeks 6 days ago
23 weeks 6 days ago
42 weeks 5 days ago
43 weeks 1 day ago
43 weeks 1 day ago
1 year 31 weeks ago
1 year 31 weeks ago