And the fact that it all exists as seperate script is just awkward.
There's already a thread going about this, where I posted a PHP example of a generator that actually grabs a random character, not just a predefined character based on a random number.
http://www.dynamicdrive.com/forums/s...ad.php?t=15831
PHP Code:
<?php
$len = 8; //set pass length //in this case, 8
for ($n=0;$n<$len;$n++) { //loop starting at 0, while less than len value
$ord = rand(1,62); //10num+26LET+26let //add more if you want
if ($ord <= 10) {$ord += 47;} //numbers
else if ($ord <= 36) {$ord += 54;} //LETTERS
else { $ord += 60; } //letters
//include other sets of chars if you want
$pass .= chr($ord); //add char to existing password
}
echo $pass; //output password
?>
http://ci-pro.com/misc/phptest/passgen.php
Test page^.
Bookmarks