note 112733 added to function.password-needs-rehash
| From: | nick at nickstallman dot net | Date: | Thu, 18 Jul 2013 00:02:57 +0000 |
| Subject: | note 112733 added to function.password-needs-rehash | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-195658@lists.php.net to get a copy of this message | ||
ydroneaud this would be used on a login page, not at any other time.
So if you have a site with MD5 passwords for example, and wish to upgrade to SHA256 for additional
security you would put this check in the login script.
This function will take a user's hash and say if it is SHA256, if it isn't then you can
take the user's password which you still have as plaintext and rehash it as SHA256.
This lets you gradually update the hashes in your database without disrupting any features or
resetting passwords.
----
Server IP: 113.20.13.217
Probable Submitter: 60.240.184.57
----
Manual Page -- http://php.net/manual/en/function.password-needs-rehash.php
Edit -- https://master.php.net/note/edit/112733
Del: integrated -- https://master.php.net/note/delete/112733/integrated
Del: useless -- https://master.php.net/note/delete/112733/useless
Del: bad code -- https://master.php.net/note/delete/112733/bad+code
Del: spam -- https://master.php.net/note/delete/112733/spam
Del: non-english -- https://master.php.net/note/delete/112733/non-english
Del: in docs -- https://master.php.net/note/delete/112733/in+docs
Del: other reasons-- https://master.php.net/note/delete/112733
Reject -- https://master.php.net/note/reject/112733
Search -- https://master.php.net/manage/user-notes.php