April 20, 2017

Encrypting and Decrypting a Database Connection String

You can encrypt your connection string to a database. Let me rephrase that: you should encrypt data connections. Here is an example of encrypting a connection string and decryprting a connection string. Create the Connection String in your App.Config: connectionString=”Provider=Microsoft.Jet.OLEDB.4.0;Data Source???;DatabaseName;” providerName=”System.Data.OleDb” / Form Code: private void EncryptConnectionString() { System.Configuration.Configuration