Posted in PHP onDecember 30, 2013
<?php $str = 'test'; $cm = md5($str); $bm = md5($str, true); $cstr = implode(unpack('H*', $bm)); $bstr = pack('H*', $cm); echo 'str:'. $str . "<br >\n"; echo 'cm :' . $cm . "<br >\n"; echo 'cstr:' . $cstr . "<br >\n"; echo 'urlencode(bm) :' . urlencode($bm) . "<br >\n"; echo 'urlencode(bstr):' . urlencode($bstr) . "<br >\n";
md5 16位二进制与32位字符串相互转换示例
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@