[PHP] Hashing strings

2005-02-17 Thread Gerard Samuel
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 -- PHP

Re: [PHP] Hashing strings

2005-02-17 Thread Richard Lynch
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

Re: [PHP] Hashing strings

2005-02-17 Thread Gerard Samuel
Richard Lynch wrote: 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

Re: [PHP] Hashing strings

2005-02-17 Thread Jason Barnett
Gerard Samuel wrote: ... Im trying to determine if md5() would be the fastest, *cheapest* solution. ... What Im looking for is something where the generated hashes can be reproduced. For example, md5('foo') today, will be equal to md5('foo') tomorrow. Thanks AFAIK crc32() is the fastest

Re: [PHP] Hashing strings

2005-02-17 Thread Gerard Samuel
Jason Barnett wrote: Gerard Samuel wrote: ... Im trying to determine if md5() would be the fastest, *cheapest* solution. ... What Im looking for is something where the generated hashes can be reproduced. For example, md5('foo') today, will be equal to md5('foo') tomorrow. Thanks