[英]Calculate the MD5 hash of the string
<?php
function renewCode( $schoolName, $certId, $barcode, $indate ){
return strtoupper( substr( md5( $schoolName.$certId.$barcode.$indate ), 3, 8 ) );
}
?>
我不了解MD5()的功能。我的意思是我知道学校名称和所有数据,但我无法获得正确的回报
例如:
正确的回报: 19B55890
Md5加密该字符串“ xxxxxxxx.xxxxxxxxx.01187422.2013-03-20
”
CBBDFC8D228B7FCFECCFC54FBB3C9D87
它不等于19B55890
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.