- substr: documentation ( source)
- var_dump: documentation ( source)
- chr: documentation ( source)
- sha1: documentation ( source)
- base64_encode: documentation ( source)
- hexdec: documentation ( source)
<?php
function hexbin($temp) {
$data="";
$len = strlen($temp);
for ($i=0;$i<$len;$i+=2) $data.=chr(hexdec(substr($temp,$i,2)));
return $data;
}
var_dump(
sha1(hexbin(base64_encode('4ly5ccc64ln8n581.0.1I0110DQXmy_first_test__559status')))
);