Function __global->ratchet_hash_verify
Definitions
sources/crypt.php
- Verify a password is correct by comparison of the hashed version.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: bool
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$password | SHORT_TEXT | required parameter | N/A | N/A | The password in plain text |
$salt | SHORT_TEXT | required parameter | N/A | N/A | The salt |
$pass_hash_salted | SHORT_TEXT | required parameter | N/A | N/A | The prior salted&hashed password, which will also include the algorithm/ratcheting level (unless it's old style, in which case we use non-ratcheted md5) |
$legacy_style | integer | 0 | N/A | N/A | CRYPT_LEGACY_* constant defining the legacy hashing style to fallback to |
Return
- Whether the password is verified
- Type: boolean
- Set: N/A
- Range: N/A