|
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
|