Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,894 questions

51,825 answers

573 users

How to get the highest available hash ID in PHP

1 Answer

0 votes
$h_c = mhash_count();
for ($i = 0; $i <= $h_c; $i++) 
    echo mhash_get_hash_name($i) . " : " . mhash_get_block_size($i) . "<br />";


/*
run: 

CRC32 : 4
MD5 : 16
SHA1 : 20
HAVAL256 : 32
: 
RIPEMD160 : 20
: 
TIGER : 24
GOST : 32
CRC32B : 4
HAVAL224 : 28
HAVAL192 : 24
HAVAL160 : 20
HAVAL128 : 16
TIGER128 : 16
TIGER160 : 20
MD4 : 16
SHA256 : 32
ADLER32 : 4
SHA224 : 28
SHA512 : 64
SHA384 : 48
WHIRLPOOL : 64
RIPEMD128 : 16
RIPEMD256 : 32
RIPEMD320 : 40
: 
SNEFRU256 : 32
MD2 : 16
FNV132 : 4
FNV1A32 : 
FNV164 : 8
FNV1A64 : 
JOAAT : 4

*/

 



answered Jul 5, 2016 by avibootz

Related questions

1 answer 255 views
1 answer 188 views
1 answer 193 views
4 answers 281 views
...