Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function random($num) {
- $string = str_shuffle("qwertyuiopasdfghjklzxcvbnm1234567890!@#$%^&*-~");
- $password = substr($string,0,$num);
- return($password);
- }
- $password = random(20); /*Change "20" for length of pass*/
- echo("Your Generated Password is: <strong>$password</strong>");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement