Hi Guys,
I am encrypting the appsettings section of my web/app.config file,
in this manner:
public static void EncryptAppSettings(string section)
{
var config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
ConfigurationSection confsection = config.GetSection(section);
if (confsection != null)
{
if (!confsection.SectionInformation.IsProtected)
{
confsection.SectionInformation.ProtectSection("DataProtectionConfigurationProvider");
confsection.SectionInformation.ForceSave = true;
config.Save(ConfigurationSaveMode.Full);
}
}
}
this works perfectly fine, however i need to decrypt the <CipherValue> in memory, and not the actual file, is there anything close to this that anyone h ...
Go to the complete details ...