Subject: password4user
Posted By: anshul Post Date: 11/7/2004 4:41:24 AM
i've seen some applications e.g., 'phpbb forums' generate passwords like 'HilImaXd' for user. (see hump/camel notation)
what php function do this 'hump' ?

Reply By: anshul Reply Date: 11/17/2004 3:04:05 AM
i m using this code:

$user=strtolower($_POST['user']);
$email=strtolower($_POST['email']);
$temp=md5(serialize($user.$email));
$password=substr($temp,0,8);

e.g. a305df99
but i don't like it - anyone can generate passwords (him/her)self
how can we get hump notation + how to pick random chars for $temp
using substr(), it picks first 8 characters

please cue a better method


Go to topic 22178

Return to index page 713
Return to index page 712
Return to index page 711
Return to index page 710
Return to index page 709
Return to index page 708
Return to index page 707
Return to index page 706
Return to index page 705
Return to index page 704