[Help] Problem with WP_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)
+--- Thread: [Help] Problem with WP_Hash (
/showthread.php?tid=530085)
[Help] Problem with WP_Hash -
davidbull - 05.08.2014
my player password in mysql was encryption, now i translate is to text, how can i do that?
Help me, please!
Re: [Help] Problem with WP_Hash -
Wizzy951 - 05.08.2014
You can't do it. That's the point of using encryption!
Re: [Help] Problem with WP_Hash -
davidbull - 05.08.2014
Quote:
Originally Posted by Wizzy951
You can't do it. That's the point of using encryption!
|
i mean i want to disable the WP_Hash
Re: [Help] Problem with WP_Hash -
AndreT - 05.08.2014
Don't store passwords in plaintext.
If you wish to move from one hashing method to another, what you have to do is ask your players to provide their old password, then run WP_Hash() on it, compare the result to the password in the database and then run your new hash function on it, store the result in a new field (or have a toggle for each player indicating whether they have a new password or not) and in the future, query for that.
Re: [Help] Problem with WP_Hash -
davidbull - 05.08.2014
Quote:
Originally Posted by AndreT
Don't store passwords in plaintext.
If you wish to move from one hashing method to another, what you have to do is ask your players to provide their old password, then run WP_Hash() on it, compare the result to the password in the database and then run your new hash function on it, store the result in a new field (or have a toggle for each player indicating whether they have a new password or not) and in the future, query for that.
|
my server type is RPG and server rules is administrator will not ask player password. So no other way?
Re: [Help] Problem with WP_Hash -
AndreT - 05.08.2014
By "ask" I mean have the script do it! I did not mean "ask" as in literally have a human ask for a password (that's a big no-no on any list).
Re: [Help] Problem with WP_Hash -
davidbull - 28.10.2014
Do you have?