Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. <?php
  2.  
  3. // Nesse caso, queremos aumentar o custo padrão do BCRYPT para 12.
  4. // Observe que também mudamos para BCRYPT, que sempre terá 60 caracteres.
  5.  
  6. $options = [
  7. 'cost' => 12,
  8. ];
  9. echo password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options);
  10.  
  11. // Imprime: $2y$12$QjSH496pcT5CEbzjD/vtVeH03tfHKFy36d4J0Ltp3lRtee9HDxY3K
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement