VanGans

MD5 ENCRYPTER

Apr 14th, 2019
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. <head>
  2. <title>MD5 Encryter</title>
  3. </head>
  4.  
  5. <form action="" method="post">
  6. To convert: <input type="text" name="string" />
  7. <input type="submit" name="submit" value="MD5">
  8.  
  9. <?php
  10.     if(!isset($_POST['submit'])) {
  11.         die("<br>Please, enter a string");
  12.     }
  13.     else {
  14.         $string = $_POST['string'];
  15.         $MD5 = md5($string);
  16.        
  17.         if($string == NULL) {
  18.             die("<br>Please, enter a string.");
  19.         }
  20.         die("<br><p>Your MD5 hash is: "."$MD5");
  21.     }
  22. ?>
Add Comment
Please, Sign In to add comment