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
#2

Where is that function from?
Reply
#3

include dudb? xD
Reply
#4

You can't decode that? I asked that while ago, and Francis said it wasn't possible.
Reply
#5

Quote:
Originally Posted by Rks_
You can't decode that? I asked that while ago, and Francis said it wasn't possible.
Oh ok :/ veeery baaad ;x damn
Reply
#6

this is like md5 there is no way to decode it
Reply
#7

You most likely can't de-code it. If your trying to check passwords. Hash what the person typed in and them compare them.
Reply
#8

Good job bumping a 2 year old topic ...
Reply
#9

i also want that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)