Advertisement
VanGans

Hash Password

Mar 4th, 2019
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. <html>
  2. <title>VanGans</title>
  3. <form method="POST" action="">
  4. <input type="text" name="password_hash"><br><br>
  5. Masukan password :<input type="submit" name="proses" value="Proses">
  6. </form>
  7. <?php
  8. error_reporting(0);
  9. if(isset($_POST['proses'])){
  10. $password = $_POST['password_hash'];
  11. $hash = password_hash($password, PASSWORD_DEFAULT);
  12. echo "password : ".$_POST['password_hash'];
  13. echo "<br>Hasil hash : ".$hash;
  14. }
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement