Dini Password numbers [rep++]
#1

Hello,

Is possible to make the dini password show as words not with numbers? Thanks
Reply
#2

Show us your script
EDIT:it is possible,you can save password in 2 forms,one in numbers (HASHED) and one in plain text
Reply
#3

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);
Reply
#4

Its better to keep the password hashed!
Reply
#5

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

okay
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)