udb_hash question
#1

Hi all i have a question how to do this on the other side?
Код:
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;
}
if i write
Код:
/login 12346 it will be in file
udb_hash(password);
pass=49807616
so how to decode the 49807616 to 12346 ??
Reply


Messages In This Thread
udb_hash question - by Jefff - 03.03.2009, 18:17
Re: udb_hash question - by ICECOLDKILLAK8 - 03.03.2009, 18:27
Re: udb_hash question - by Jefff - 03.03.2009, 18:28
Re: udb_hash question - by Rks25 - 03.03.2009, 18:40
Re: udb_hash question - by Jefff - 03.03.2009, 18:47
Re: udb_hash question - by CoaPsyFactor - 28.01.2011, 16:19
Re: udb_hash question - by Kaylux - 28.01.2011, 16:34
Re: udb_hash question - by Vince - 28.01.2011, 16:35
Re: udb_hash question - by Steven Paul - 28.01.2011, 17:08

Forum Jump:


Users browsing this thread: 1 Guest(s)