Question? Crypting the Password?
#3

For example (from DUDB.inc by Dracoblue)

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) + s1;
}
Cheers,
[LDT]LuxurY.
Reply


Messages In This Thread
Question? Crypting the Password? - by Monti|spearrow - 14.02.2009, 19:33
Re: Question? Crypting the Password? - by yom - 14.02.2009, 20:02
Re: Question? Crypting the Password? - by [LDT]LuxurY - 14.02.2009, 20:51
Re: Question? Crypting the Password? - by Monti|spearrow - 14.02.2009, 21:13
Re: Question? Crypting the Password? - by [LDT]LuxurY - 15.02.2009, 11:02
Re: Question? Crypting the Password? - by kc - 15.02.2009, 11:18

Forum Jump:


Users browsing this thread: 1 Guest(s)