Guest User

Untitled

a guest
Aug 16th, 2011
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>MD5 password generator</title>
  4. </head>
  5. <body>
  6. <h2>MD5 password generator</h2>
  7.  
  8. <?php
  9.  
  10. if($_POST['pw'])
  11. {
  12.     echo '<table><tr><th>Password</th><th>MD5</th></tr>';
  13.     $e = explode("\n", $_POST['pw']);
  14.     foreach ($e as $a)
  15.         echo "<tr><td>".$a."</td><td>".md5($a)."</td></tr>\n";
  16.     echo '</table>';
  17. }
  18. ?>
  19. <p>
  20. <form name="pw" method="post">
  21. Enter passwords to get MD5 for each:<br>
  22. <textarea type="text" name="pw">password</textarea>
  23. <input type="submit" value="Submit">
  24. </form>
  25.  
  26. </body>
  27. </html>
Add Comment
Please, Sign In to add comment