• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] [FIXED] What is Meaning udb_hash ?
#1
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;

}?
  Reply
#2
A hashing algorithm - if I remember correctly, a part of dudb for passwords.



Despite all his accomplishments, pretty much every library DracoBlue wrote in the early days of SA:MP has been replaced with much more productive and secure alternatives. Avoid anything with the prefix udb_, dini_, and dudb_.
  Reply


Forum Jump: