I have a question about encryption. Do you have to add MD5 somewhere in the c-script if you send the password from the inkey to the mysql database server and the password on the server uses MD5 of SHA? Could anyone explain this?


Code:
function userlogin()
{
mySQL_Connectdb("gsa6db","mydomain","gsa6","xs4all");
if(!mySQL_IsConnected())
{
beep;
exit; // Connection failed, exit to Windows.
}

inkey(username);
inkey(password);

str_cat(query, "select * from Players WHERE username='");
str_cat(query, username);
str_cat(query, "' AND password='");
str_cat(query, password);
str_cat(query, "';");

if(mySQL_ExecQuery(query)&&mySQL_RowNumber()==1){
// do something

}else{
exit; // No entry or false, exit to Windows.
}



Dusty


smile