note 57848 added to function.md5
| From: | nathan at nathanbolender dot com | Date: | Sun, 16 Oct 2005 19:31:48 +0000 |
| Subject: | note 57848 added to function.md5 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-97088@lists.php.net to get a copy of this message | ||
If you're a security freak you might want to take a look at the 2 functions I have posted at http://code.nathanbolender.com/PHP/salt_pepper/
. It uses a hardcoded "key" and hashes it one of 2 ways, so you are always left with a
random 'hash' to store in your database. The other function will check the hash against
the original string to make sure that it is correct. If you want to see an example of the debug
output you can at http://code.nathanbolender.com/PHP/salt/ . Note
that on that page the "key" is random only to demonstrate the possibility for so much
variations.
I know that a simple md5() would normally be enough, but I came up with this and I wanted to share
it.
----
Manual Page -- http://www.php.net/manual/en/function.md5.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57848
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57848&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57848&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57848&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57848&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57848&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57848&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57848&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57848&report=yes
Search -- http://master.php.net/manage/user-notes.php