Skip to content

Instantly share code, notes, and snippets.

@fedir
Last active February 21, 2019 10:37
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 fedir/888295a0a8b7145b09744767cb3088e8 to your computer and use it in GitHub Desktop.
Save fedir/888295a0a8b7145b09744767cb3088e8 to your computer and use it in GitHub Desktop.
PHP Argon2i test
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
echo password_hash("test", PASSWORD_ARGON2I) . "\n";
// expected output:
// $argon2i$v=19$m=1024,t=2,p=2$Si9YUTV5Mk50clRPckJmNg$iiaHUvfJpx2fwVJLUDr2J0XePR31gxxIu5VHlgFMA/k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment