Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

password_verify()

3 tags 1 category

password_verify() — Verifies that a password matches a hash.

Verifies that the given hash matches the given password. password_verify is compatible with crypt. Therefore, password hashes created by crypt can be used with password_verify.

Note that password_hash returns the algorithm, cost and salt as part of the returned hash. Therefore, all information that’s needed to verify the hash is included in it. This allows the verify function to verify the hash without needing separate storage for the salt or algorithm information.

Inputs: password: The user’s password. hash: A hash created by password_hash.

Returns: Returns true if the password and hash match, or false otherwise.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…