Skip to content

Instantly share code, notes, and snippets.

@fernandodebrando fernandodebrando/Argon2i.php Secret
Created Jul 6, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.