note 96475 added to function.md5

From: Date: Mon, 01 Mar 2010 11:49:55 +0000
Subject: note 96475 added to function.md5
Groups: php.notes 
Request: Send a blank email to php-notes+get-166463@lists.php.net to get a copy of this message
Please *stop* using MD5, it has been decertified by NIST for over a decade. The algorithm is broken: Instead of the expected 2^64 hash computations to produce a collision, a collision can now be computed in roughly 2^20 hash computations - which can be performed in *a second* on a desktop PC. A hash collision is bad. Using this method an attacker can forge a perfectly valid MD5 hash of data that you did not expect as the author, potentially injecting this data into your database and costing you a lot of money. The current recommendation is to use one of the SHA-2 functions, as SHA-1 has also had flaws detected it in, which result in less than the predicted number of hash computations before a collision is produced. http://eprint.iacr.org/2008/391 http://csrc.nist.gov/groups/ST/toolkit/secure_hashing.html ---- Server IP: 69.147.83.197 Probable Submitter: 194.223.200.197 ---- Manual Page -- http://www.php.net/manual/en/function.md5.php Edit -- https://master.php.net/note/edit/96475 Del: integrated -- https://master.php.net/note/delete/96475/integrated Del: useless -- https://master.php.net/note/delete/96475/useless Del: bad code -- https://master.php.net/note/delete/96475/bad+code Del: spam -- https://master.php.net/note/delete/96475/spam Del: non-english -- https://master.php.net/note/delete/96475/non-english Del: in docs -- https://master.php.net/note/delete/96475/in+docs Del: other reasons-- https://master.php.net/note/delete/96475 Reject -- https://master.php.net/note/reject/96475 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#166463) next »