Encrypting Sitecore Database Connection

You can encrypt all or part of your config files with a Protected Configuration Provider. Section 3 in the Protecting Connection Strings and Other Configuration Information (C#) describes this in more detail.

Before starting, ensure you make a copy of your config and connectionstring files. You should not need to change the code that calls the connection string - this is handled transparently.