Function password_needs_rehash
Determine if the password hash needs to be rehashed according to the options provided
If the answer is true, after validating the password using password_verify, rehash it.
Parameters summary
string |
$hash |
The hash to test |
integer |
$algo |
The algorithm used for new password hashes |
array |
$options = array() |
The options array passed to password_hash |
Return value summary
boolean
|
True if the password needs to be rehashed. |