2014
11-25
11-25
php常用hash加密函数
本文实例讲述了php常用hash加密函数。分享给大家供大家参考。具体分析如下:代码如下:$hash_list=hash_algos();//返回注册的hash规则列表 print_r($hash_list);//显示结果创建文件以计算哈希值:file_put_contents('example.txt','thequickbrownfoxjumpedoverthelazydog.');输出哈希值信息:代码如下:echohash_file('md5','example.txt');$str="thequickbrownfoxjumpedoverthelazydog.";//定义字符串echo...
继续阅读 >