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.
Copyright:
2012 The Authors
License: MIT License
Author: Anthony Ferrara <ircmaxell@php.net>
Located at vendor/ircmaxell/password-compat/lib/password.php
License: MIT License
Author: Anthony Ferrara <ircmaxell@php.net>
Located at vendor/ircmaxell/password-compat/lib/password.php
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. |