Re: other mhash hashes
| From: | Burhan Khalid | Date: | Wed, 16 Feb 2005 06:55:24 +0000 |
| Subject: | Re: other mhash hashes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-208814@lists.php.net to get a copy of this message | ||
David Norman wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I thought some other people would be interested in the other hashes that you can do with mhash that aren't on the php.net docs after the recent news that SHA-1 might be weaker than previously thought: http://www.schneier.com/blog/archives/2005/02/sha1_broken.html The built in constants that the mhash docs have listed are simply integers that tell mhash what to use. So I found the integers in mhash's mhash.h: http://cvs.sourceforge.net/viewcvs.py/mhash/mhash/lib/mhash.h?rev=1.25&view=auto The following works for alternate hashes in the Win32 PHP 5.0.3 release of libmhash.h. For anyone wanting a step up from SHA-1, SHA256 works.David: You should really post this at the mhash manual entry in php.net. I'm sure others would find it useful. Good find :) Cheers, Burhan [ snippity snip snip ]