http://www.tyxod.net/sha1/index.php');
curl_setopt($c,CURLOPT_POST,1);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c,CURLOPT_POSTFIELDS,
'Submit=sha1%20search&string2playwith='.bin2hex(base64_decode($s)));
$str=curl_exec($c);
curl_close($c);
if(preg_match('!<div align="center" class="result">\n {16}(.*?)&!s',
$str,$a))
return $a[1];
return 'Failed decoding sha1';
}
但是arcsha1不一定查的到
查出來也不一定是對的
可能會有collision
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 221.169.71.109
※ 編輯: buganini 來自: 221.169.71.109 (11/11 11:10)
function decoder($s){
$c = curl_init();
curl_setopt($c,CURLOPT_URL,'