03.03.2009, 18:17
Hi all i have a question how to do this on the other side?
if i write
so how to decode the 49807616 to 12346 ??
Код:
stock udb_hash(buf[])
{
new length=strlen(buf);
new s1 = 1;
new s2 = 0;
new n;
for (n=0; n<length; n++) {
s1 = (s1 + buf[n]) % 65521;
s2 = (s2 + s1) % 65521;
}
return (s2 << 16) + s1;
}
Код:
/login 12346 it will be in file udb_hash(password); pass=49807616

