note 104125 modified in function.md5 by danbrown

From: Date: Wed, 25 May 2011 13:06:41 +0000
Subject: note 104125 modified in function.md5 by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-180019@lists.php.net to get a copy of this message
No, there's no "complete rainbow table" for md5 in existence. That would be absurd. md5 is a 16-byte hash, so there's 2^(16*8) possibilities, or 340282366920938463463374607431768211456 even if every one was just 16 bytes, that'd be 8847341539944400050047739793 terabytes worth of data, much more than the total storage humanity ownes. There's other problems with md5, but this isn't one of them. --was-- Several of these comments are -badly- confused. There should be some mechanism for sorting the wheat from the chaff, especially for security-critical stuff such as hashes. If you come to this page with no solid understanding of hashes, you likely end up more confused than you where, since the "advice" is full of misunderstandings and patent nonsense like confusing encrypting with hashing. No, there's no "complete rainbow table" for md5 in existence. That would be absurd. md5 is a 16-byte hash, so there's 2^(16*8) possibilities, or 340282366920938463463374607431768211456 even if every one was just 16 bytes, that'd be 8847341539944400050047739793 terabytes worth of data, much more than the total storage humanity ownes. There's other problems with md5, but this isn't one of them. http://php.net/manual/en/function.md5.php

« previous php.notes (#180019) next »