SA-MP Forums Archive
Password hash - rep++ - 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: Password hash - rep++ (/showthread.php?tid=325887)



Password hash - rep++ - Edvin - 15.03.2012

Hi.

How can i un-hash the passwords hashed with "udb_hash"? I need this because i want to hash all passwords with whirlpool and put all accounts on SQLite database. So how can i make with users passwords to un-hash?


Re: Password hash - rep++ - nmader - 15.03.2012

Well, I am not sure of a simple way, so you will most likely have to PM the owners of the accounts, and ask then what they want their unhashed password to be, simplest way, unfortunately, that I can think of.


Re: Password hash - rep++ - ReneG - 15.03.2012

I'm pretty sure there are tech whizzes out there who have decrypted udb_hash.

But, udb_hash was made for passwords NOT to be unhashed. So, by all means good luck. I highly doubt this would be possible.

Or do what nmader said. Or somehow script them to re-register but save their stats.


Re: Password hash - rep++ - Edvin - 15.03.2012

Other methods don't exists?


Re: Password hash - rep++ - Vince - 15.03.2012

Just convert it on the fly. When a player joins and his file exists, ask him for his password to authenticate (with udb_hash). If the password is correct, then save the unhashed password in a temporary variable at that point. Then use that to insert new data into the database (with Whirlpool). Delete the old file afterwards to prevent double insertions (or if SQLite supports this, place a UNIQUE identifier on the name field).