do_password_hash_code_update()
do_password_hash_code_update()
Recalculates and updates the password hashing cost.
hash_password_update(string $pass, string $hash) : string|null
Determines if the provided password needs re-hashing or not.
string | $pass | The password to check. |
string | $hash | The hash of the provided password to check. |
Returns null if an updaste is not required - otherwise returns the new updated hash.
hash_password_compute_cost( $verbose = false) : integer
Computes the appropriate cost value for password_hash based on the settings automatically.
Starts at 10 and works upwards in increments of 1. Goes on until a value is found that's greater than the target - or 10x the target time elapses.
$verbose |
The automatically calculated password hashing cost.