Home >php教程 >PHP源码 >【网站安全】自定义MD5加强安全性

【网站安全】自定义MD5加强安全性

PHP中文网
PHP中文网Original
2016-05-25 17:09:401175browse

php代码

function md123($sstr)
{
$md_asc=”";
$mds=md5(“qwEqw”.$sstr.”2ddsdf”);
$mds=md5(“rtrTtyr”.$mds.”zcv34r”);
for($i=1;$i< strlen($mds);$i++){
$md_asc.=168/ord(substr($mds,$i,1));
}
return md5($md_asc);
}

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:采集网站资源Next article:【黑客收藏版】结尾用