php中常用hash加密函数

php中常用hash加密函数
$hash_list=hash_algos();  //返回注册的hash规则列表 print_r($hash_list); //显示结果 创建文件以计算哈希值:file_put_contents('example.txt', 'the quick brown fox jumped over the lazy dog.'); 输出哈希值信息: echo hash_file('md5', 'example.txt'); $str="the quick brown fox jumped over the lazy dog.";      //定义字符串 echo hash('ripemd160',$str);           //生成哈希值 $ctx=has...
Copyright © 四季博客 保留所有权利.   Theme  Ality

用户登录