note 98653 added to function.md5

From: Date: Tue, 29 Jun 2010 10:19:59 +0000
Subject: note 98653 added to function.md5
Groups: php.notes 
Request: Send a blank email to php-notes+get-170540@lists.php.net to get a copy of this message
Please, please, please, please don't use the example by "Anonymous, 08-Jun-2010 08:36". It is extremely ill constructed. The first (32 - password length) bytes will always be identical, thus making this incredibly prone to collisions. The value constructed from SALT_TWO will never be used at all. This is just wrong in so many ways. Salt the password BEFORE doing the hash. Use a different random salt for each password, and store it with the password. ---- Server IP: 69.147.83.197 Probable Submitter: 62.209.190.194 ---- Manual Page -- http://www.php.net/manual/en/function.md5.php Edit -- https://master.php.net/note/edit/98653 Del: integrated -- https://master.php.net/note/delete/98653/integrated Del: useless -- https://master.php.net/note/delete/98653/useless Del: bad code -- https://master.php.net/note/delete/98653/bad+code Del: spam -- https://master.php.net/note/delete/98653/spam Del: non-english -- https://master.php.net/note/delete/98653/non-english Del: in docs -- https://master.php.net/note/delete/98653/in+docs Del: other reasons-- https://master.php.net/note/delete/98653 Reject -- https://master.php.net/note/reject/98653 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#170540) next »