note 114410 added to function.password-hash
| From: | cottton | Date: | Mon, 17 Feb 2014 16:29:56 +0000 |
| Subject: | note 114410 added to function.password-hash | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-198535@lists.php.net to get a copy of this message | ||
if you thought
"why is the salt included in the hash and is it save when i store it as it is in my db?"
Answer i found:
The salt just has to be unique. It not meant to be a secret.
As mentioned in notes and docu before: let password_hash() take care of the salt.
With the unique salt you force the attacker to crack the hash.
The hash is unique and cannot be found at rainbow tables.
----
Server IP: 72.52.91.14
Probable Submitter: 72.52.91.14
----
Manual Page -- http://php.net/manual/en/function.password-hash.php
Edit -- https://master.php.net/note/edit/114410
Del: integrated -- https://master.php.net/note/delete/114410/integrated
Del: useless -- https://master.php.net/note/delete/114410/useless
Del: bad code -- https://master.php.net/note/delete/114410/bad+code
Del: spam -- https://master.php.net/note/delete/114410/spam
Del: non-english -- https://master.php.net/note/delete/114410/non-english
Del: in docs -- https://master.php.net/note/delete/114410/in+docs
Del: other reasons-- https://master.php.net/note/delete/114410
Reject -- https://master.php.net/note/reject/114410
Search -- https://master.php.net/manage/user-notes.php