note 112484 added to function.password-hash
| From: | Alan | Date: | Thu, 20 Jun 2013 20:31:23 +0000 |
| Subject: | note 112484 added to function.password-hash | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-195307@lists.php.net to get a copy of this message | ||
Fyi, I ran into an issue when not providing the salt to crypt() which coincides with the
documentation on the crypt() page: "If not provided, the behavior is defined by the algorithm
implementation and can lead to unexpected results." Encrypting text on a windows platform
could not be decrypted on a linux platform because the default algorithms were different. I had to
specifically provide a salt to ensure the same algorithm was used on both platforms. I would
imagine this would occur with password_hash() as well.
----
Server IP: 192.41.42.26
Probable Submitter: 38.122.3.194
----
Manual Page -- http://php.net/manual/en/function.password-hash.php
Edit -- https://master.php.net/note/edit/112484
Del: integrated -- https://master.php.net/note/delete/112484/integrated
Del: useless -- https://master.php.net/note/delete/112484/useless
Del: bad code -- https://master.php.net/note/delete/112484/bad+code
Del: spam -- https://master.php.net/note/delete/112484/spam
Del: non-english -- https://master.php.net/note/delete/112484/non-english
Del: in docs -- https://master.php.net/note/delete/112484/in+docs
Del: other reasons-- https://master.php.net/note/delete/112484
Reject -- https://master.php.net/note/reject/112484
Search -- https://master.php.net/manage/user-notes.php