Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // WARNING: PassGen
- $password = "";
- $charset = "abcdefghijkl&^*?mnopqrstu@#!vwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
- for($i = 0; $i < 8; $i++)
- {
- $random_int = mt_rand();
- $password .= $charset[$random_int % strlen($charset)];
- }
- echo $password, "\n";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement