![]() |
|
[Pawn] [FIXED] What is Meaning udb_hash ? - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) --- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10) --- Thread: [Pawn] [FIXED] What is Meaning udb_hash ? (/showthread.php?tid=1837) |
[FIXED] What is Meaning udb_hash ? - PutuSuhartawan - 2021-04-05 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; } RE: Help! What is udb_hash ? - Bakr - 2021-04-05 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_. |