I have recently come across this article which describes the process of encrypting the connectionString tags in the web.config file:
http://chiragrdarji.wordpress.com/2008/08/11/how-to-encrypt-connection-string-in-webconfig/
I have used the same method to encrypt the appSettings tag in the web.config file containing my encryption key.
My question is, if I give the project to someone else who will run it on a different machine, would they be able to use the reverse process to decrypt the appSettings tag in the web.config file using aspnet_regiis tool? If not, will the project still work on his machine?
This is how I am retrieving the encryption key in my code:
string block_size = ConfigurationManager.AppSettings["rgbIV"];
string encryption_key = ConfigurationManager.AppSettings["key"];