Monthly Archives: October 2015

Encrypt/Decrypt “ConnectionStrings” in Web.Config

An article by Yasmin Khakku in CodeProject discuss comprehensively on how to encrypt/decrypt connectionStrings.

    1. Open cmd with administrator privileges.
    2. Enter command:
    3. Enter following command to encrypt the connectionStrings:

The encrypted connectionStrings will look something like this:

To decrypt the encrypted connectionStrings enter command: