Created
October 5, 2019 07:20
-
-
Save caironm/47224d5dff54ed31b45f33d9b39ad0e2 to your computer and use it in GitHub Desktop.
Criar senha
This file contains hidden or 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 | |
// Nesse caso, queremos aumentar o custo padrão do BCRYPT para 12. | |
// Observe que também mudamos para BCRYPT, que sempre terá 60 caracteres. | |
$options = [ | |
'cost' => 12, | |
]; | |
echo password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options); | |
// Imprime: $2y$12$QjSH496pcT5CEbzjD/vtVeH03tfHKFy36d4J0Ltp3lRtee9HDxY3K |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment