SA-MP Forums Archive
[DUVIDA] Senha - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [DUVIDA] Senha (/showthread.php?tid=271560)



[DUVIDA] Senha - [AF]Junior - 24.07.2011

Gostaria de sabe como encriptar senhas igual aos RPG's.


Re: [DUVIDA] Senha - rjjj - 24.07.2011

Basta pesquisar no fуrum !


Isto deve resolver o seu problema :


https://sampforum.blast.hk/showthread.php?tid=249057



Espero ter ajudado .


Re: [DUVIDA] Senha - [AF]Junior - 24.07.2011

Mas como vou por isso?

pawn Код:
stock Encriptar(texto[])//Cуdigo irб pegar a senha normal, encriptar, e retornar em forma de texto
{
    new SenhaEncriptada[100];
    for(new x = 0; x <= strlen(texto); x++)
    {
        SenhaEncriptada[x] = (texto[x] * 2);//Cada caractere da senha Encriptada vai ser igual ao da original multiplicado por 2
    }
    return SenhaEncriptada;
}
No registro tб dini_Set(String,"Senha",inputtext);

No login tб if(!strcmp(inputtext,dini_Get(String,"Senha"),fals e))


Re: [DUVIDA] Senha - RockFire - 24.07.2011

PHP код:
dini_Set(String,"Senha",Encriptar(inputtext));
if(!
strcmp(Encriptar(inputtext),dini_Get(String,"Senha"),false)) 
Pode usar Whirlpool que te da um MD5 Hash


Re: [DUVIDA] Senha - [AF]Junior - 25.07.2011

Valeu. Ficou encriptado.