SA-MP Forums Archive
How Can I decode udb_hash ? - 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: How Can I decode udb_hash ? (/showthread.php?tid=72614)



How Can I decode udb_hash ? - lea_VA - 09.04.2009

hello,
i want to decode the result of udb_hash, because i use it to save passwords ina dudb.sav file and i need to know the password (because, if someone forget his password, i will get it by mail).

The code to encode it's:

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: How Can I decode udb_hash ? - boylett - 09.04.2009

The point of hashing is that you cant decode it.


Re: How Can I decode udb_hash ? - Eraz0r - 09.04.2009

You could do it via bruteforcing. Maybe u write a own program, which uses you GPU, then u can reach a speed of 800 million hash/sec


Re: How Can I decode udb_hash ? - DMSOrg - 09.04.2009

Change it so that it doesn't hash at all... make it save it in MD5


Re: How Can I decode udb_hash ? - gijsmin - 09.04.2009

md5 is the same as the ubd hash


Re: How Can I decode udb_hash ? - Pyrokid - 09.04.2009

Go online and find a MD5 decoder. I know there's got to be a few out there.