开发者

Are there other hashing functions in PHP?

I know there are MD5 and SHA1 hashing 开发者_运维百科functions in PHP, but are there any others?


Use

<?php
print_r(hash_algos());
?>

This prints a list of all available hashing-algorithms that are available on your system. Chose one and provide it as the first parameter to the hash-function like this:

hash('whirlpool', $the_data_to_be_hashed);


Yes, it supports a range of algorithms depending on which version you are using. Check out the documentation for a complete list, but version 5.3 supports the whole sha2 family, ripemd, whirlpool, tiger and others.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜