Posted By

zenco on 10/05/10


Tagged

php password ramdom


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

bobbym245
pytheas


Function to make a Random Password


 / Published in: PHP
 

This function is usefull and simple, specially when u create users databases

  1. function MakePassword($length)
  2. {
  3. srand((double)microtime()*1000000);
  4. return substr(md5(uniqid(rand())),0,$length);
  5. }

Report this snippet  

You need to login to post a comment.