Re: PHP 5.1.0 - sha256() and sha256_file() support

From: Date: Wed, 16 Nov 2005 18:33:23 +0000
Subject: Re: PHP 5.1.0 - sha256() and sha256_file() support
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-20072@lists.php.net to get a copy of this message
Ron Korving wrote: > I just read this news that an MD5 collision can now be done by anyone in 45 > minutes (avg) on a P4 1.6 GHz: > > http://it.slashdot.org/article.pl?sid=05/11/15/2037232&threshold=-1&tid=172&tid=93&tid=228 > http://www.stachliu.com.nyud.net:8090/collisions.html > > MD5 as the standard for hashing is definately history. All the more reason > for sha256- and alike-functions. If you've read the article closely you'll know that while an impressive trick, collisions cannot be generated arbitrarily. The program generates both of the values that result in the same md5 hash . You cannot give it an md5 and have it generate you a string with the same md5 hash, so md5 is still relatively safe. Ilia

« previous php.internals (#20072) next »