Re: Hashing strings

From: Date: Thu, 17 Feb 2005 17:36:50 +0000
Subject: Re: Hashing strings
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-208935@lists.php.net to get a copy of this message
Gerard Samuel wrote:
Im currently using md5() to hash strings to be used, as an id for a cache system. Im trying to determine if md5() would be the fastest, *cheapest* solution. The only native php functions that I know of are md5() and sha1(). Are there any other native php functions that hash strings? Thanks I believe crc32 is faster, but it's not that hard to change something in the code, and still get the same hash, so I'm not sure if it'd be such a great choice


« previous php.general (#208935) next »