security

Automatically encrypt database connection strings in Visual Studio

Automatically encrypt database connection strings in Visual Studio

This article shows you how to automatically preserve your database connection string in app.config whilst also deploying an encrypted version in your production app…. In my example, I am connecting to a remote MySQL database from a winforms app. Add your data source via the usual means, choosing to save your password and store in app.config: The open ProjectSettings > Compile > BuildEv... »