ɓʀuɳѳ' ИИ#92 350 Posted February 12, 2013 Olá, deixo aqui um Pw Generator básico espero que gostem . <html><head> <title>bruno Random Password Generator - PHP</title></head></html><?php///////////////////////////////////////Password Generator by ɓʀuɳѳ//////Code by ɓʀuɳѳ em PHP /////////////http://www.cyber-gamers.org/////////////cyber-gamers.com///////////////////////////////////////////////Array to store all the letters$alpha = array('a', 'A', 'b', 'B', 'c', 'C', 'd', 'D', 'e', 'E', 'f', 'F', 'g', 'G', 'h', 'H', 'i', 'I', 'j', 'J', 'k', 'K', 'l', 'L', 'm', 'M', 'n', 'N', 'o', 'O', 'p', 'P', 'q', 'Q', 'r', 'R', 's', 'S', 't', 'T', 'u', 'U', 'v', 'V', 'w', 'W', 'x', 'X', 'y', 'Y', 'z', 'Z');//Array that stores the final output that is the generated password for display to the user$output = array();function generate() { global $alpha, $output; for ($i=1; $i < 10 ; $i++) {//Generates first random letter or number from the array $first = array_rand($alpha); $get_one = $alpha[$first];//Generates second random letter or number from the array $sec = array_rand($alpha); $get_two = $alpha[$sec];//Generates third random letter or number from the array $thrd = array_rand($alpha); $get_three = $alpha[$thrd];//Generates fourth random letter or number from the array $fth = array_rand($alpha); $get_four = $alpha[$fth];//Generates fifth random letter or number from the array $ffth = array_rand($alpha); $get_five = $alpha[$ffth];//Generates sixth random letter or number from the array $sxth = array_rand($alpha); $get_six = $alpha[$sxth];//Stores the output of all the random generated letter into a combined form (In the array $output) $output = $get_one . $get_two . $get_three . $get_four . $get_five . $get_six . "\n"; }}echo '<b>Your Generated Passwords Are:</b>';//Generates random passwords many time (Depends upon the length of the Array list)for ($i=0; $i < count($alpha) ; $i++) { generate(); echo "<li>$output</li>";}?> Resultado: Cumprimentos 3 Origin., Golo255 and EliminaEstaContaSff reacted to this Share this post Link to post Share on other sites
EliminaEstaContaSff 536 Posted February 12, 2013 -1 porque nao te curto (http://cyber-gamers.org/public/style_emoticons/default/451960.gif) Share this post Link to post Share on other sites
K3nkσz 824 Posted February 12, 2013 É bem. Cumprimentos, Chupaaz. Share this post Link to post Share on other sites
Golo255 597 Posted February 12, 2013 Mereces um http://cyber-gamers.org/public/style_emoticons/default/451960.gif por essa. Share this post Link to post Share on other sites