note 118589 added to function.hash-pbkdf2
| From: | nimasdj | Date: | Tue, 05 Jan 2016 12:08:31 +0000 |
| Subject: | note 118589 added to function.hash-pbkdf2 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-204592@lists.php.net to get a copy of this message | ||
There is a mistake in the class provided by Binod Kumar Luitel
(http://php.net/manual/en/function.hash-pbkdf2.php#113488):
this line:
return bin2hex(substr($this->output, 0, $this->key_length));
must be changed to:
return substr(bin2hex($this->output), 0, $this->key_length);
----
Server IP: 72.52.91.14
Probable Submitter: 2.177.246.0
----
Manual Page -- http://php.net/manual/en/function.hash-pbkdf2.php
Edit -- https://master.php.net/note/edit/118589
Del: integrated -- https://master.php.net/note/delete/118589/integrated
Del: useless -- https://master.php.net/note/delete/118589/useless
Del: bad code -- https://master.php.net/note/delete/118589/bad+code
Del: spam -- https://master.php.net/note/delete/118589/spam
Del: non-english -- https://master.php.net/note/delete/118589/non-english
Del: in docs -- https://master.php.net/note/delete/118589/in+docs
Del: other reasons-- https://master.php.net/note/delete/118589
Reject -- https://master.php.net/note/reject/118589
Search -- https://master.php.net/manage/user-notes.php