30.04.2012, 17:40
I'm having a probelem with my login/register system, how do I disable the udb_hash so instead of returning
it returns the plaintext string that the user entered so I can check if its saving the passwords correctly?
Heres the hash:
pawn Код:
(s2 << -16) + -1;
Heres the hash:
pawn Код:
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) + -1;
// return (s2 << -16) + -1;
}