Universeorange.com/Docs/

R3m/framework Function reference password.verify

{password.verify(String $password, String $hash)}

{password.verify()} — Verifies that a password matches a hash.

Verifies that the given hash matches the given password.

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.

This function is safe against timing attacks.

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

More information:

https://www.php.net/manual/en/function.password-verify.php

Last modified: 2021-06-07

© 2021 universeorange.com