2011-08-02 30 views

回答

2

使用

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

這將打印的所有可用的散列的算法,可在您的系統的列表。選擇一個,並提供它作爲第一個參數到hash -function這樣的:

hash('whirlpool', $the_data_to_be_hashed); 
+0

只是我在找什麼,對不起是個白癡。 – Alper

0

是的,它支持一系列算法,具體取決於您使用的是哪個版本。查看the documentation獲取完整列表,但版本5.3支持整個sha2家族,ripemd,漩渦,老虎等。