Iteration count and algorithm have to match the parameters when generating the derived key.
public validatePassword ( string $password, string $hashedPasswordAndSalt, string $staticSalt = null ) : boolean | ||
$password | string | The cleartext password |
$hashedPasswordAndSalt | string | The derived key and salt in Base64 encoding as returned by hashPassword for verification |
$staticSalt | string | Static salt that will be appended to the dynamic salt |
Результат | boolean | TRUE if the given password matches the hashed password |