note 87483 added to function.md5

From: Date: Sat, 06 Dec 2008 21:10:47 +0000
Subject: note 87483 added to function.md5
Groups: php.notes 
Request: Send a blank email to php-notes+get-147761@lists.php.net to get a copy of this message
I don't think encrypting the passwords multiple times is a good idea. It will reduce the number of possibilities. I think the best way to protect the passwords is by using two different salts, and do something like this: <?php $hash = md5($salt1.$password.$salt2); ?> Because of the way md5 hashes are calculated, it is also important to use salts that are NOT 64 characters, because MD5 will split the string in blocks of 64 bytes each (16 'words'). ---- Server IP: 195.207.10.20 Probable Submitter: 81.240.161.191 ---- Manual Page -- http://www.php.net/manual/en/function.md5.php Edit -- https://master.php.net/note/edit/87483 Del: integrated -- https://master.php.net/note/delete/87483/integrated Del: useless -- https://master.php.net/note/delete/87483/useless Del: bad code -- https://master.php.net/note/delete/87483/bad+code Del: spam -- https://master.php.net/note/delete/87483/spam Del: non-english -- https://master.php.net/note/delete/87483/non-english Del: in docs -- https://master.php.net/note/delete/87483/in+docs Del: other reasons-- https://master.php.net/note/delete/87483 Reject -- https://master.php.net/note/reject/87483 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#147761) next »