Dini Password numbers [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: Dini Password numbers [rep++] (
/showthread.php?tid=601773)
Dini Password numbers [rep++] -
tekimakedonija - 26.02.2016
Hello,
Is possible to make the dini password show as words not with numbers? Thanks
Re: Dini Password numbers [rep++] -
K0P - 26.02.2016
Show us your script
EDIT:it is possible,you can save password in 2 forms,one in numbers (HASHED) and one in plain text
Re: Dini Password numbers [rep++] -
tekimakedonija - 26.02.2016
Onplayerlogins
pawn Код:
if(dini_Exists(string2))
{
new password2 = num_hash(password);
if(dini_Int(string2,"Lozinka") == password2)
{
PlayerInfo[playerid][pLozinka] = dini_Int(string2,"Lozinka");
Onplayerupdate
pawn Код:
dini_IntSet(string3, "Lozinka",PlayerInfo[playerid][pLozinka]);
OnPlayerRegister
pawn Код:
dini_Create(file);
new password2 = num_hash(password);
PlayerInfo[playerid][pLozinka] = password2;
PlayerInfo[playerid][pReg] = 1;
PlayerInfo[playerid][pLevel] = 3;
PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
dini_IntSet(file, "Lozinka",password2);
Re: Dini Password numbers [rep++] -
N0FeaR - 26.02.2016
Its better to keep the password hashed!
Re: Dini Password numbers [rep++] -
Virtual1ty - 26.02.2016
#1 - don't use Dini!
#2 - don't EVER store passwords as plain-text, hash them with a proper hash.
(udb_hash/num_hash is not a proper hash!! ->
http://forum.sa-mp.com/showpost.php?...09&postcount=7)
Re: Dini Password numbers [rep++] -
tekimakedonija - 26.02.2016
okay