note 8531 deleted from mhash by ronabop
| From: | ronabop@php.net | Date: | Sun, 01 Oct 2000 06:40:02 +0000 |
| Subject: | note 8531 deleted from mhash by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5746@lists.php.net to get a copy of this message | ||
I couldn't figure out how to make this work so I figured others might have the same problem.
Here's an example:
<?
echo bin2hex(mHash(MHASH_SHA1, "This will be hashed"));
?>
If you don't change it from binary to hex (bin2hex), you might have problems saving it in a
database later on because of the use quotes, etc..
The hashes you can use (if I'm not wrong) are:
MHASH_MD5
MHASH_SHA1
MHASH_HAVAL
MHASH_RIPEMD160
MHASH_RIPEMD128
MHASH_SNEFRU
MHASH_TIGER
MHASH_GOST
MHASH_CRC32
MHASH_CRC32B