I want to encrypt the SQL Connection string in web.config and retrieve it from ASP.NET code in a decrypted format.
I have come across DPAPI method, however, for decrypting looks like we need to run the command. I want to avoid this and have it retrieved in the code in a decrypted format.
How can I achieve this?
Thanks in advance.
...
Go to the complete details ...