antiblock
diamwall
  • Chatbox

    Did you check out our Discord? https://discord.gg/FFdvMjk9xA
    You don't have permission to chat.
    Load More
Sign in to follow this  
ɓʀuɳѳ' ИИ#92

[Php] Password Generator

4 posts in this topic

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:

Imagem colocada

Cumprimentos

Share this post


Link to post
Share on other sites
antiblock
Elveron

É bem.

Cumprimentos,

Chupaaz.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this