Random username and password

rufus15

Junior Member
Joined
May 21, 2009
Messages
134
Reaction score
163
Guys, I need a little help here please.

I know about creating randomized function using arrays but that was it.

I don't know anything about creating a random username (pronounceable) and a random password.

Please I need help here. :)
 
thanks bro, but mostly its all about random password.
Isn't there any for generating random (pronounceable) username ??
 
You could try a name, another name and a number like
JohnyJohnson1246
You first take a list of names from somewhere;
Code:
http://www.keepandshare.com/doc/view.php?u=12825
Just search for baby names.

Than you make that into arrays. Maybe make a a automated script to do that via a foreach loop.
Say for instance name 1 has variable 1.
you then use mt_rand to create a number that is name, another number for the second name and then for four other generic numbers.
Always original.
 
yes.. you can take names and add random some numbers at end of it..
 
fng makes it too easy :), but its best you create your own algorithm/database if you're going to need this in bulk.

PHP:
<?php

//scrape this motherfucker!
preg_match('/\<span\sclass="given\-name"\>\w+\<\/span\>/i', file_get_contents('http://www.fakenamegenerator.com/'), $fn);
preg_match('/\<span\sclass="family\-name"\>\w+\<\/span\>/i', file_get_contents('http://www.fakenamegenerator.com/'), $sn);
preg_match('/\<li\S+\<\/li\>/i', file_get_contents('http://www.fakenamegenerator.com/'), $p);
// user info
$uid = strip_tags(utf8_decode($fn[0].$sn[0]));
$pass = strip_tags(utf8_decode($p[0]));

//confirm info
echo $uid.'<br>';
echo $pass.'<br>';


?>
 
Back
Top