| Length | Password | $i | ".genPassword($i)." | "); } function genPassword($length) { $command = OPENSSL_EXEC." rand -base64 ".$length; if(!exec($command, $outLines)) print("Error"); // Add lines $out = ""; foreach($outLines as $i) { $out .= $i; } return substr($out, 0, $length); } ?>
|---|