Created
September 16, 2017 07:44
-
-
Save ruangprogrammer/0d822d8a34fa4bed6c1d1811493c6e46 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
<?php | |
$options = ['salt' => fungsi_salt(), //buat fungsi untuk generate salt | |
'cost' => 12 // default option ini adalah 10 | |
] | |
$hash = password_hash($password, PASSWORD_DEFAULT, $options); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment