title: How do I securely hide database credential in C# application?
body: <p>I have a situation that users access remote MySQL server in C# application.</p>
  
  <p>Basically,</p>
  
  <p>A user using C# application on his/her desktop ->>>> connects to remote ->>>>>>>> [ REMOTE ]</p>
  
  <p>How do I securely hide database connection detail?</p>
  
  <p>I have few ideas, but I don't think they are safe.</p>
  
  <ol>
  <li>Encrypt database connection data into a file and store it within application directory.</li>
  <li>prompt login page and let a human enter username/password, then transfer database connection data to user's computer.</li>
  </ol>