Function __global->password_verify
Definitions
sources_custom/phpstub.php
- Verify a password against a hash using a timing attack resistant approach.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $password | string | No | No | required parameter | N/A | N/A | The password to verify |
| $hash | string | No | No | required parameter | N/A | N/A | The hash to verify against |
Returns
- If the password matches the hash
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Verify a password against a hash using a timing attack resistant approach.
*
* @param string $password The password to verify
* @param string $hash The hash to verify against
* @return boolean If the password matches the hash
*/
function password_verify(string $password, string $hash) : bool
* Verify a password against a hash using a timing attack resistant approach.
*
* @param string $password The password to verify
* @param string $hash The hash to verify against
* @return boolean If the password matches the hash
*/
function password_verify(string $password, string $hash) : bool

