Advertisement
Guest User

Untitled

a guest
May 12th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. function random($num) {
  2.  
  3. $string = str_shuffle("qwertyuiopasdfghjklzxcvbnm1234567890!@#$%^&*-~");
  4. $password = substr($string,0,$num);
  5. return($password);
  6.  
  7. }
  8.  
  9. $password = random(20); /*Change "20" for length of pass*/
  10. echo("Your Generated Password is: <strong>$password</strong>");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement