[HELP] Decode udb_hash
#3

it maybe sounds dumb to you, but have you try switching the code, positive to negative?

Quote:

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;
}

i dont know how this code does its job, so it was just a random thought:
anyways, the solution shouldnt be that hard, because for any good thing, there is a bad thing, for any beautiful thing, there is a ugly thing etc.
Reply


Messages In This Thread
[HELP] Decode udb_hash - by lea_VA - 03.02.2009, 14:59
Re: [HELP] Decode udb_hash - by Joe Staff - 03.02.2009, 15:48
Re: [HELP] Decode udb_hash - by maij - 03.02.2009, 17:20

Forum Jump:


Users browsing this thread: 1 Guest(s)