Created
January 28, 2018 06:15
-
-
Save YurePereira/5d42672c14e395ce2b05a97aebbb9dc9 to your computer and use it in GitHub Desktop.
Criando um salt personalizado ao usarmos a função password_hash.
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 = [ | |
'cost' => 13, | |
'salt' => 'FPNk5qN6b6WIiLnUrp', | |
]; | |
echo password_hash('MyPassword', PASSWORD_BCRYPT, $options); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment