Skip to content

Instantly share code, notes, and snippets.

@fernandodebrando
Created July 6, 2017 02:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fernandodebrando/36ed8f0e1658bc40d0a293e6ffdc80ba to your computer and use it in GitHub Desktop.
Save fernandodebrando/36ed8f0e1658bc40d0a293e6ffdc80ba to your computer and use it in GitHub Desktop.
Argon2 Password Hash
<?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