Yes for encryption-decryption we can do in various ways, in this article I showed how to do this using ASP.NET IIS Registration Tool (Aspnet_regiis.exe), also the encrypted string we can store as key-value pair in same web config, then we have to decrypt inside the program