I have my code on how to encrypt my app but i want my app to have be fixed encrypted app. For security purposes. Below is my code.
try
{
Configuration config = ConfigurationManager.OpenExeConfiguration(exeConfigName);
ConnectionStringsSection section = config.GetSection("connectionStrings") as ConnectionStringsSection;
section.SectionInformation.ProtectSection("DataProtectionCOnfigurationProvider");
config.Save();
Console.WriteLine("Protected = {0}", section.SectionInformation.IsProtected);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
Waiting for a reply.