Skip to content

Instantly share code, notes, and snippets.

@Justintime50
Last active March 10, 2020 03:18
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 Justintime50/12cd582cf337135f06b74b5ad204ac38 to your computer and use it in GitHub Desktop.
Save Justintime50/12cd582cf337135f06b74b5ad204ac38 to your computer and use it in GitHub Desktop.
Run the following to hash a password using PHP.

Hash a Password

Run the following to hash a password using PHP. Replace mypass with the password you'd like to hash.

php -r '$hash = password_hash("mypass", PASSWORD_DEFAULT); echo $hash."\n";'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment