Hash problem(php/pawn) - 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)
+--- Thread: Hash problem(php/pawn) (
/showthread.php?tid=409410)
Hash problem(php/pawn) -
MattSlater - 21.01.2013
Basically I have a website registration:
Code here:
http://pastebin.com/X8Rj9rmm
And in-game registration, they both use udb_hash to hash the passwords, BUT for eg: I register a new account in-game as the password 'testing' and the pass for eg would be: 5462515 then I register on the website using the same pass, then the pass would be: 139721?
I don't know why, it's the exact same hash function, it doesn't hash the same way it does in-game
Anyhelp pls
Re: Hash problem(php/pawn) -
Vince - 21.01.2013
udb_hash is Adler32, which is in fact a checksum algorithm rather than a real hashing algorithm. It's very insecure, though I believe it comes bundled with PHP. Nevertheless, I recommend you use some stronger hashing algorithm like sha2 (or md5/sha1 with salt if < MySQL 5.5).