note 73876 added to function.mhash-keygen-s2k
| From: | gmic at osu1 dot php dot net | Date: | Wed, 14 Mar 2007 07:42:03 +0000 |
| Subject: | note 73876 added to function.mhash-keygen-s2k | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-124432@lists.php.net to get a copy of this message | ||
Correction to ray ferguson post,
As said in the doc : "mhash_keygen_s2k generates a key that is bytes long, from a user given
password and use the specified hash algorithm to create the key." if It wasn't clear to
anyone.
The non mhash function is good as long you do not need a key longer than native MD5 hash (16 bytes)
it wont give you more.
So the non mhash function work OK but they ARE NOT the same thing.
Just try ray ferguson exemple asking for a 32 bytes key.
Returning a substring longer than the packed 16 bytes string won't add anything to the string.
Salted S2K algorithm does add to the key. So better use mhash lib or create something more alike
the RFC 2440 specs.
I know the post is late on regard to Ray's post but if it can help someone not waisting time
like me.
----
Server IP: 69.147.83.197
Probable Submitter: 69.159.88.231
----
Manual Page -- http://www.php.net/manual/en/function.mhash-keygen-s2k.php
Edit -- https://master.php.net/note/edit/73876
Del: integrated -- https://master.php.net/note/delete/73876/integrated
Del: useless -- https://master.php.net/note/delete/73876/useless
Del: bad code -- https://master.php.net/note/delete/73876/bad+code
Del: spam -- https://master.php.net/note/delete/73876/spam
Del: non-english -- https://master.php.net/note/delete/73876/non-english
Del: in docs -- https://master.php.net/note/delete/73876/in+docs
Del: other reasons-- https://master.php.net/note/delete/73876
Reject -- https://master.php.net/note/reject/73876
Search -- https://master.php.net/manage/user-notes.php