Login Register






PHP Password Generator filter_list
Author
Message
PHP Password Generator #1
Hi! Made this little script as a practice.
Code:
<?php function rand_password($len) { mt_srand((double)microtime()*1000000^getmypid()); $password=''; $chars='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-+@#?~'; // Used characters while(strlen($password)<$len) $password.=substr($chars,(mt_rand()%strlen($chars)),1); return $password; } $password=rand_password($num); ?> <html> <body> <title> Password Generator </title> <form method="GET" action="pass.php"> How long password you want:<input type="text" size="60" name="num">&nbsp;&nbsp; <input type="submit" value="[ ok ]"><br> </form> <?php echo "Generated password: <b>$password</b>"; ?>


Reply

PHP Password Generator #2
Hi! Made this little script as a practice.
Code:
<?php function rand_password($len) { mt_srand((double)microtime()*1000000^getmypid()); $password=''; $chars='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-+@#?~'; // Used characters while(strlen($password)<$len) $password.=substr($chars,(mt_rand()%strlen($chars)),1); return $password; } $password=rand_password($num); ?> <html> <body> <title> Password Generator </title> <form method="GET" action="pass.php"> How long password you want:<input type="text" size="60" name="num">&nbsp;&nbsp; <input type="submit" value="[ ok ]"><br> </form> <?php echo "Generated password: <b>$password</b>"; ?>


Reply

RE: PHP Password Generator #3
Please drop your number ... so we can talk @Slarek

Reply

RE: PHP Password Generator #4
(09-05-2013, 04:25 AM)Slarek Wrote:
(09-05-2013, 02:53 AM)walesb Wrote: Please drop your number ... so we can talk @Slarek

What you mean, call me maybe lol?

Nice, now you have stalker. How do you feel?

Reply

RE: PHP Password Generator #5
(09-05-2013, 05:11 AM)invisal Wrote:
(09-05-2013, 04:25 AM)Slarek Wrote:
(09-05-2013, 02:53 AM)walesb Wrote: Please drop your number ... so we can talk @Slarek

What you mean, call me maybe lol?

Nice, now you have stalker. How do you feel?

I feel terrible.


Reply

RE: PHP Password Generator #6
Pretty decent, thanks for the share?
Reviewing the code it looks rather straightforward to script, I never thought of programming one before.
Thanks for the share.
<?php echo "Very inactive at this current moment in time"; ?>
[Image: Z8KDe.png]

Reply

RE: PHP Password Generator #7
@Mediocrity
Indeed. This is very simple script which i made as a practice.
But if modify the source, you can make it more efficient.


Reply