Password hashing with Whirlpool when logging on?
#1

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

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)
Reply
#3

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)