5
Reply

How to secure MySql connection?

Mateusz TurismoGM

Mateusz TurismoGM

Oct 12 2015 6:40 AM
680
HI! I have problem to secure connection Mysql server with my desktop app.
I want to encrypt my password.
I heared about RSA or SSL but i don't know how to use it.
Please help me. This is how i connect:
 
private MySqlConnection connection;     
private string server;
private string database;
private string uid;
private string password;
 private void Initialize()    
{
server = "localhost";
database = "databaseName";
uid = "username";
password = "password";
string connectionString;
connectionString = "SERVER=" + server + ";" +
"DATABASE=" + database + ";" + "UID=" + uid + ";" +
"PASSWORD=" + password + ";";
connection = new MySqlConnection(connectionString);
}

Answers (5)