开发者

Are there other hashing functions in PHP?

开发者 https://www.devze.com 2023-03-25 02:50 出处:网络
I know there are MD5 and SHA1 hashing 开发者_运维百科functions in PHP, but are there any others?Use

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

精彩评论

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

关注公众号