Created
November 5, 2017 01:14
-
-
Save ruangprogrammer/adca5ed9e4b601f92857ed01469e43d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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