Skip to content

Instantly share code, notes, and snippets.

@YurePereira
Created November 4, 2017 04:55
Show Gist options
  • Select an option

  • Save YurePereira/71ca474511f3246455283c8fb5e5bd3a to your computer and use it in GitHub Desktop.

Select an option

Save YurePereira/71ca474511f3246455283c8fb5e5bd3a to your computer and use it in GitHub Desktop.
Creating a password hash with the password_hash function in PHP
<?php
$password = 'myPassword';
echo password_hash($password, PASSWORD_DEFAULT);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment