title: How to encrypt the app.config with password
body: <p>I am developing a project for myself and I have 2 question about security in my code:</p>
  
  <p>First question is:</p>
  
  <p>How to encrypt the parameter in app.config connectionStrings section with a password. </p>
  
  <p>I have encrypted with aspnet_regiis.exe but anyone can decompile my code, access to the app.config and use the command:</p>
  
  <p>aspnet_regiis.exe -pdf "connectionStrings" "path"</p>
  
  <p>I would like anyone couldnt decrypt without some code or password in the command.</p>
  
  <p>Second question is:</p>
  
  <p>When I am running the solution in C# I can put a break point in the connectionString variable and see the variable value so encrypt its not useful to me, how could I change that?</p>