note 101992 added to function.mcrypt-encrypt

From: Date: Fri, 21 Jan 2011 21:07:56 +0000
Subject: note 101992 added to function.mcrypt-encrypt
Groups: php.notes 
Request: Send a blank email to php-notes+get-175981@lists.php.net to get a copy of this message
The previous comment by anonymous is true but instead of increasing the password length, it is a better idea to use a Key derivation function to generate a key from a password. It adds a lot of entropy to your key without impacting your users (that will do something dumb in reaction) You could use pbkdf2, I saw an implementation given in comments here : http://php.net/manual/en/function.hash-hmac.php Not tried it yet, we are using sha256 instead. You can then compare the hashed password to the hashed password in your database. Hope it helps. ---- Server IP: 69.147.83.197 Probable Submitter: 86.69.50.171 ---- Manual Page -- http://www.php.net/manual/en/function.mcrypt-encrypt.php Edit -- https://master.php.net/note/edit/101992 Del: integrated -- https://master.php.net/note/delete/101992/integrated Del: useless -- https://master.php.net/note/delete/101992/useless Del: bad code -- https://master.php.net/note/delete/101992/bad+code Del: spam -- https://master.php.net/note/delete/101992/spam Del: non-english -- https://master.php.net/note/delete/101992/non-english Del: in docs -- https://master.php.net/note/delete/101992/in+docs Del: other reasons-- https://master.php.net/note/delete/101992 Reject -- https://master.php.net/note/reject/101992 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#175981) next »