Function to make a Random Password


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. function MakePassword($length)
  2. {
  3. srand((double)microtime()*1000000);
  4. return substr(md5(uniqid(rand())),0,$length);
  5. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.