Sign in to follow this  
Followers 0
Grimmy

PHP random password generator

3 posts in this topic

Place this code in a PHP Document to create a random password generator

<?php

function generator($lenght=8)

{

	 for($i = 0; $i<= $lenght; $i++)

	 {

		  $password .= chr(rand(97,122));

	 }

	 echo "Your random eight letter pass is "".$password.""";

}

generator();

?>

Note: By default it make a random 8 character password. To change this, alter the 8 in the PHP Snip above

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  
Followers 0