udb_hash question - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: udb_hash question (
/showthread.php?tid=67740)
udb_hash question -
Jefff - 03.03.2009
Hi all i have a question how to do this on the other side?
Код:
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;
}
if i write
Код:
/login 12346 it will be in file
udb_hash(password);
pass=49807616
so how to decode the 49807616 to 12346 ??
Re: udb_hash question -
ICECOLDKILLAK8 - 03.03.2009
Where is that function from?
Re: udb_hash question -
Jefff - 03.03.2009
include dudb? xD
Re: udb_hash question -
Rks25 - 03.03.2009
You can't decode that? I asked that while ago, and Francis said it wasn't possible.
Re: udb_hash question -
Jefff - 03.03.2009
Quote:
|
Originally Posted by Rks_
You can't decode that? I asked that while ago, and Francis said it wasn't possible.
|
Oh ok :/ veeery baaad ;x damn
Re: udb_hash question -
CoaPsyFactor - 28.01.2011
this is like md5 there is no way to decode it
Re: udb_hash question -
Kaylux - 28.01.2011
You most likely can't de-code it. If your trying to check passwords. Hash what the person typed in and them compare them.
Re: udb_hash question -
Vince - 28.01.2011
Good job bumping a 2 year old topic ...
Re: udb_hash question -
Steven Paul - 28.01.2011
i also want that