note 115066 deleted from function.password-needs-rehash by sobak

From: Date: Fri, 06 Mar 2015 17:35:45 +0000
Subject: note 115066 deleted from function.password-needs-rehash by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-201875@lists.php.net to get a copy of this message
Note Submitter: solariane ---- the correct use case is given here ( https://github.com/ircmaxell/password_compat ) if (password_verify($password, $hash)) { if (password_needs_rehash($hash, $algorithm, $options)) { $hash = password_hash($password, $algorithm, $options); /* Store new hash in db */ } }

« previous php.notes (#201875) next »