Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To check whether a password is correct or not, we need three values: password, password_hash and password_salt 

...

Code Block
languagephp
$password_hash = password_hash('password', PASSWORD_BCRYPT, array('cost' => 10));

To check whether a password is correct or not:

...