MD5 HELP
#1

Код:
case 22:
							{
							    if(IsPlayerAdmin(playerid)){
								GetPlayerName(playur, giveplayer, sizeof(giveplayer));
								GetPlayerName(playerid, sendername, sizeof(sendername));
								strmid(oBilgi[playur][oSifre], string, 0, strlen(string), 255);
								new logtut[128];
								format(logtut, sizeof(logtut), "[/ozellikayarla 22][PASSWORD] %s tarafindan sifresi %s olarak degistirildi.",sendername,string);
								kLogTut(playur,logtut);
								format(logtut, sizeof(logtut), "[/ozellikayarla 22][PASSWROD] %s adli oyuncunun sifresini %s olarak degistirdi.",giveplayer,string);
								kLogTut(playerid,logtut);
								format(string, sizeof(string), "UYARI: %s, %s adlı kişinin şifresini değiştirdi.", sendername,giveplayer);
								AHerkes(COLOR_YELLOW,string,1);
								print(string);
								format(string,sizeof(string),"/cikisyaptir %d",playur);
								OnPlayerCommandText(playerid,string);
								}
							}


Код:
OyuncuGirisYapti(playerid,password[]) // by Luk0r v1
{
//	MySQLCheckConnection();
	new playername2[MAX_PLAYER_NAME];
	if(MySQLCheckAccountLocked(pSQLID[playerid])){
	TogglePlayerControllable(playerid, 0);
	SendClientMessage(playerid, COLOR_RED, "/----- {FFFFFF}Nexus RPG Anti-Hile Sistemi {"GENELCOLOR"} -----\\");
	SendClientMessage(playerid, COLOR_LIGHTRED, "Hesabınız yasaklanmıştır. Karakterinizin цlmesi, hile yapmanız veya kurallara uymamanız sebebiyle olabilir.");
	SendClientMessage(playerid, COLOR_LIGHTRED, "Bir hata olduğunu dьşьnьyorsanız lьtfen forum.nexus-rpg.com sayfasından gerekli konu altında bildiriniz.");
	SendClientMessage(playerid, COLOR_LIGHTRED, "İlginiz iзin teşekkьrler.");
	Kick(playerid);
	return 1;
	}
 	new ipmiver[18];
	GetPlayerIp(playerid,ipmiver,sizeof(ipmiver));
	MySQLUpdatePlayerStrSingle(pSQLID[playerid], "ip", ipmiver);
	MySQLUpdatePlayerIntSingle(pSQLID[playerid], "songiristarihi", gettime());
	MySQLUpdatePlayerIntSingle(pSQLID[playerid], "oyunda", 1);
    GetPlayerName(playerid, playername2, sizeof(playername2));
	MySQLFetchAcctSingle(pSQLID[playerid], "sifre", oBilgi[playerid][oSifre]);
  	new query[1024];
	if(strcmp(oBilgi[playerid][oSifre],password, true) == 0)
I want add md5.
Reply
#2

More details would be appreciated..
Reply
#3

More details ..
Reply
#4

First I change the password with the code "/ setstat". I want to update the table to be updated with MD5. For the other, the user will enter the user password at the login, md5.inc will dial it, read through MYSQL if it is correct and it will process the server again. Thus, the server will evaluate the data and provide the player's entry.

(( Sorry for my English. ))
Reply
#5

Quote:
Originally Posted by ******
Посмотреть сообщение
MD5 is horribly horribly broken.
Just look up MD5 decrypter to see why.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)