-
-
Save fernandodebrando/36ed8f0e1658bc40d0a293e6ffdc80ba to your computer and use it in GitHub Desktop.
Argon2 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 | |
// Argon2i com fatores de custo padrão | |
password_hash('password', PASSWORD_ARGON2I); | |
// Argon2i com fatores de custo personalizados | |
password_hash('password', PASSWORD_ARGON2I, ['memory_cost' => 1<<17, 'time_cost' => 4, 'threads' => 2]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment