Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html><head><title>PassGen</title></head><body>
- <form action="#" method="post">
- <input type="text" name="Passwords" value="# of Passes"/>
- <input type="text" name="Chars" value="# of Chars"/>
- <input type="submit">
- <?php
- if(isset($_POST['Passwords']))
- for($i=0;$i<$_POST['Passwords'];$i++){
- echo "Passord $i: ";
- for($j=0;$j<$_POST['Chars'];$j++){
- echo htmlentities(chr(mt_rand(33,125)));
- }
- echo "<br>";
- }
- ?>
- </form></body></html>
Add Comment
Please, Sign In to add comment