15.07.2010, 14:14
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.
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!
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;
}
Can you help me with udb_hash for PHP?
I really need that cuz all my accounts are saved with udb_hashed password.
Thanks!

