Home  >  Article  >  php教程  >  php-md5变换算法之附加字符串干涉

php-md5变换算法之附加字符串干涉

PHP中文网
PHP中文网Original
2016-05-25 17:14:421353browse

php代码

<?php 
//附加字符串在原数据的尾部 
function md5_3_1($data, $append) 
{ 
return md5($data.$append); 
} 

//附加字符串在原数据的头部 
function md5_3_2($data, $append) 
{ 
return md5($append.$data); 
} 

//附加字符串在原数据的头尾 
function md5_3_3($data, $append) 
{ 
return md5($append.$data.$append); 
} 
?>
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