Password hashing with Whirlpool when logging on? - 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 hashing with Whirlpool when logging on? (
/showthread.php?tid=422945)
Password hashing with Whirlpool when logging on? -
MrSnapp - 16.03.2013
I have the below small amount of code but when users log in or edit their account it does not hash out the password. It will show the actual password instead of ***** or dots.
I am using Whirlpool and I cannot seem to get it working with whatever I do.
pawn Код:
new password2 = num_hash(inputtext);
if(PlayerInfo[playerid][pKey] == password2)
Re: Password hashing with Whirlpool when logging on? -
CROSS_Hunter - 16.03.2013
Change the "DIALOG_STYLE_INPUT " in the login dialog to "DIALOG_STYLE_PASSWORD "
for eg:
pawn Код:
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_INPUT, BLAHBLAH)
to
pawn Код:
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_PASSWORD, BLAHBLAH)
Re: Password hashing with Whirlpool when logging on? -
MrSnapp - 16.03.2013
Quote:
Originally Posted by CROSS_Hunter
Change the "DIALOG_STYLE_INPUT " in the login dialog to "DIALOG_STYLE_PASSWORD "
for eg:
pawn Код:
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_INPUT, BLAHBLAH)
to
pawn Код:
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_PASSWORD, BLAHBLAH)
|
Thanks!