Disable Hash
#1

I'm having a probelem with my login/register system, how do I disable the udb_hash so instead of returning
pawn Код:
(s2 << -16) + -1;
it returns the plaintext string that the user entered so I can check if its saving the passwords correctly?

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;
}
Reply


Messages In This Thread
Disable Hash - by Vrondakis - 30.04.2012, 17:40
Re: Disable Hash - by MP2 - 30.04.2012, 17:44
Re: Disable Hash - by Vrondakis - 30.04.2012, 17:54

Forum Jump:


Users browsing this thread: 1 Guest(s)