Skip to content

Instantly share code, notes, and snippets.

@ruangprogrammer
Created November 5, 2017 01:14
Show Gist options
  • Save ruangprogrammer/adca5ed9e4b601f92857ed01469e43d4 to your computer and use it in GitHub Desktop.
Save ruangprogrammer/adca5ed9e4b601f92857ed01469e43d4 to your computer and use it in GitHub Desktop.
<form method="POST" action="">
<input type="text" name="password_hash"><br><br>
Masukan password :<input type="submit" name="proses" value="Proses">
</form>
<?php
error_reporting(0);
if(isset($_POST['proses'])){
$password = $_POST['password_hash'];
$hash = password_hash($password, PASSWORD_DEFAULT);
echo "password : ".$_POST['password_hash'];
echo "<br>Hasil hash : ".$hash;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment