Does PHP hash () support WHIRLPOOL support?

Is the PHP WHIRLPOOL hash function supported by default? I think so, but I wanted to ask, to be sure.

+4
source share
2 answers

Yes, hash() in PHP should support Whirlpool by default. Try calling:

 print_r(hash_algos()); 

to see a list of supported hashing methods.

http://www.php.net/manual/en/function.hash-algos.php

+8
source

Yes. And your code might look something like this:

 $myHash = hash( 'whirlpool', $salt . $password ); 

For more information, see this great article: PHP Password Protection

+4
source

Source: https://habr.com/ru/post/1302423/


All Articles