note 46311 deleted from function.mhash by tomsommer
| From: | tomsommer@php.net | Date: | Wed, 06 Oct 2004 18:43:55 +0000 |
| Subject: | note 46311 deleted from function.mhash by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-78089@lists.php.net to get a copy of this message | ||
Note Submitter: dark dot ryder at gmail dot com
----
If you want a list of hashes *guarateed* to work on a particular server (as not all servers will
have the exact same versions of PHP and Mhash available), here's how to get it:
<html><head><title>Supported hashes</title></head><body>
<ul><?php
$hashes = array();
$count = mhash_count();
for ($i = 0; $i <= $count; $i++)
$hashes[mhash_get_hash_name($i)] = mhash_get_block_size($i);
ksort($hashes);
foreach ($hashes as $k => $v)
echo "<li>$k (block size $v)</li>\n";
?></ul>
</body></html>