- sha1: documentation ( source)
- ord: documentation ( source)
- md5: documentation ( source)
<?php
$a = 03;
$b = 11;
$c = 2014;
function numerek($a, $b, $c){
$s = 0;
$s = $a + $b + $c;
$kod = md5($s);
$kod = sha1($kod);
$s = 0;
for ($i=0;$i<strlen($kod);$i++){
if ($i%2==0) {$kod[$i]= ord($kod[$i]);}
else
{$kod[$i] = ord($kod[$i]*$a+1);}
$s = $s + $kod[$i] ;
}
$s = $s * $a;
while ($s>32)
{
$s = $s - 32;
}
return $s;
}