0
Whenever I go to create a new stringconnection, Visualstudio asks me if I want to leave the visible password in the app.config file
I always say yes, because I don’t know how to insert it directly via code.
How can I delete this password from the file and make the connection at runtime avoiding as soon as someone opens the app.config file and see the password there?
I’m using Visual Studio 2015, Entity Framework 6 and Mysql
Since you have not put any code context you use, make sure that this example of creating Dbcontext helps you by passing the connection object: https://msdn.microsoft.com/en-us/library/dn456849(v=vs.113). aspx
– Pagotti
You can encrypt the Connection string using Aspnet_regiis.exe
– David
If encrypting the Connectionstring is sufficient for you, then I believe it is a duplicate of https://answall.com/a/143014/46243. If that is not the case, you will need to provide more details on this question of yours. When a connection to the bank is requested, a screen asking for the password (once only) is sufficient?
– Ismael