udb_hash help
#1

Hello! I need a little help with udb_hash.

I got udb_hash defined in pawno and using it for my register and log in system in server.

Код:
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 am currently working on login system on my website and I need udb_hash for PHP so I can make users login with their ingame account.

Can you help me with udb_hash for PHP?

I really need that cuz all my accounts are saved with udb_hashed password.

Thanks!
Reply
#2

Shit, no help.
Reply
#3

Wanna me help u again? :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)