Question? Crypting the Password?
#1

Is there any default function to crypt for exampe the password?
Or can anybody script me a
Crypt(string[]); Function
Thanks alot..
~ Monte
Reply
#2

Have you actually searched? there are tons.
Reply
#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
#4

Thanks alot
Reply
#5

Quote:
Originally Posted by ssǝן‾ʎ
Or if you want one that doesn't suck:

http://forum.sa-mp.com/index.php?topic=89418.0
gamemodes doesn't need such powerful hashes.
Reply
#6

Quote:
Originally Posted by [LDT
LuxurY ]
Quote:
Originally Posted by ssǝן‾ʎ
Or if you want one that doesn't suck:

http://forum.sa-mp.com/index.php?topic=89418.0
gamemodes doesn't need such powerful hashes.
why not? Extra security never hurts...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)