I know that ppl have already asked questions regarding encrypting web.config.
im also trying to encrypt my test config file, but im getting this error.
aspnet_re
SecuredSettings
(any name is fine) either in you App.config or Web.config file.
var attr = ConfigurationManager.GetSection("SecuredSettings") as NameValueCollection;
var value = attr["pwrd"];
C:\Windows\Microsoft.NET\Framework\v4.0.30319
aspnet_regiis.exe -pc MyCustomKeys -exp
aspnet_regiis.exe -pa MyCustomKeys "NT AUTHORITY\NETWORK SERVICE"
aspnet_regiis.exe -pef "SecuredSettings" "C:\DEV\ConsoleApp\DEX" -prov MyEncryptionProvider
aspnet_regiis.exe -px MyCustomKeys keys.xml -pri
it will generate keys.xml
file in C:\Windows\Microsoft.NET\Framework\v4.0.30319aspnet_regiis -pi MyCustomKeys keys.xml
aspnet_regiis.exe -pdf "SecuredSettings" "C:\DEV\ConsoleApp\DEX"