Hash problem(php/pawn)
#1

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
Reply
#2

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).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)