Encrypting and Decrypting a Database Connection String April 20, 2017 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