Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*================================================================
- _ ____ _____ __ __
- (_) _ \ ___ | _ _ | _ __ __ | \ / |
- | | | _) / __ | | | / _ \ / _ `| | \ / | |
- | | __ / \ __ \ | | __ / (_ | | | | |
- |_|_| |___/ | _ | \ ___ | \ __,_|_| | _ |
- Criado por SuYaNw Dácio
- www.ips-team.blogspot.com
- Generate Random Password
- ===============================================================*/
- function GenerateRandomPassword($size) // By: [iPs]SuYaNw
- {
- $sStr = NULL;
- $Words = Array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R",
- "S","T","U","V","W","X","Y","1","2","3","4","5","6","7","8","9","0",
- "a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r",
- "s","t","u","v","w","x","y","Z","z" )
- ;
- for($i = 0; $i != $size; ++$i)
- {
- $sStr .= $Words[array_rand($Words)];
- }
- return $sStr;
- }
Advertisement
Add Comment
Please, Sign In to add comment