\n"; // Echo "RootDir: ".$RootDir."
\n"; // We'll need access to the Global Variables: // include_once("$DOCUMENT_ROOT/include/GlobalVars.php"); // To get rid of: Warning: include_once() [function.include-once]: Unable to access /include/GlobalVars.php in include_once("$RootDir/include/GlobalVars.php"); // We will be accessing all sorts of functions: //include_once("$DOCUMENT_ROOT/include/Functs.php"); include_once("$RootDir/include/Functs.php"); // Check to see if the visitor (USER_AGENT) is a spider. If not: // then do a "session_start"... // Creates a session or resumes the current one // based on the current session id that's being passed via a // request, such as GET, POST, or a COOKIE. // It's necessary that this be the first PHP command in the file. If (!ItsASpider()) { session_start(); // Sets various session variables like ReferringURL and EntryURL // if they haven't already been set // include_once("$DOCUMENT_ROOT/include/SetSessionVars.php"); include_once("$RootDir/include/SetSessionVars.php"); } // This turns on Output Buffering. This seems to be // necessary because we may be redirecting to a "Thank You" page // after they submit the form. Speeds things up because // browser doesn't reload when hitting BACK button. ob_start(); // PageNameStr - This is the dominant keyword phrase for the page. // Goes in comments, header bars, IMAGE ALT tags, etc. Only about 10 words! $PageNameStr="Random Ultra-Secure Password Generator - Pronounceable and Unpronounceable"; // This is the first line string. It goes at the very top of the page. // If this is NOT a doorway page, then set the $PageFirstLineStr: // Notice: Undefined variable: ThisIsDoorway // IF (!($ThisIsDoorway)) // If not set, then set it to get rid of error message: If (!IsSet($ThisIsDoorway)) {$ThisIsDoorway=0;} If ($ThisIsDoorway<>1) {$PageFirstLineStr="Password Generator - Extremely High Security - Online Utility to Generate Secure Passwords Randomly - Pronounceable and Unpronounceable - Online Tool";} // This is the first text after the first line, // that usually shows up in the upper left corner $PageFirstTextStr="${CompanyStr}

FreeBSD make install dies"; // This is the second text after the first line, // that usually shows up in the upper right corner $PageSecondTextStr="${CompanyDomain}

'make install on FreeBSD fails"; $PageTitleStr=$PageFirstLineStr; $PageKeywordStr=$PageNameStr; $PageCommentStr="Generate Secure Random Passwords.  Pronounceable and Unpronounceable High Security Password Generator.  Online Tool to Randomly Create Very Secure Passwords.  Online Utility."; // $PageDescriptionStr=""; // $PageRobotsStr=""; // If this is NOT a doorway page, then include header.php: IF (!($ThisIsDoorway)) { include_once("$RootDir/include/header-brief.php"); } // // A function to generate random alphanumeric passwords in PHP // It expects to be passed a desired password length, but it // none is passed the default is set to 10 (you can change this) function generate_password($length = 1) { // This variable contains the list of allowable characters // for the password. Note that the number 0 and the letter // 'O' have been removed to avoid confusion between the two. // The same is true of 'I' and 1 $allowable_characters = "AaBbCcDdEeFfGgHhJjKkLlMmNnPpQqRrSsTtUuVvWwXxYyZz23456789!*-/="; // We see how many characters are in the allowable list $ps_len = strlen($allowable_characters); // Seed the random number generator with the microtime stamp // (current UNIX timestamp, but in microseconds) mt_srand((double)microtime()*1000000); // Declare the password as a blank string. $pass = ""; //If ($length = 1) // { // srand(time()); // $length = rand()%8 +8; // } // Loop the number of times specified by $length for($i = 0; $i < $length; $i++) { // Each iteration, pick a random character from the // allowable string and append it to the password. $pass .= $allowable_characters[mt_rand(0,$ps_len-1)]; } // End for // Retun the password we've selected return $pass; } ?>
Here are a number of passwords to choose from.  If you wish to see more, just click the 'Reload' (Refresh) button.

EXTREMELY secure passwords:
\n
\n"; for($i = 0; $i < 21; $i++) { // srand(time()); //$ThisLength = rand()%8 +8; mt_srand((double)microtime()*1000000); $ThisLength = mt_rand(0, 8) +8; echo "Password: ".$password=generate_password($ThisLength)."\n"; for ($j = 0; $j < 17 - (strlen($password)); $j++) { echo " "; } // echo "  (Length: ".strlen($password).")
\n"; echo "  (Length: ".$ThisLength.")
\n"; // echo "--------------------------------
\n"; } Echo "
\n"; Echo "
\n"; Echo "
\n"; // Generate very secure, but pronounceable passwords: Echo "Very secure, but pronounceable passwords:
\n
\n"; for($i = 0; $i < 21; $i++) { Echo "Password: ".$ThisPass=CreateSecurePass()."\n"; For ($j = 0; $j < 17 - (strlen($ThisPass)); $j++) { echo " "; } Echo "  (Length: ".strlen($ThisPass).")
\n"; } ?>