Skip to content

mocanet/MocaConfiguration

Repository files navigation

MocaConfiguration

NuGet NuGet Pre Release NuGet license

Overview

Configuration file Section Protection.

Support for multiple frameworks

Microsoft .NET Framework

  • 2.0
  • 3.5
  • 4.0
  • 4.5
  • 4.5.2
  • 4.6
  • 4.6.2
  • 4.7
  • 4.7.2
  • 4.8

How to get

URL:https://www.nuget.org/packages/Moca.NETConfiguration/

PM> Install-Package Moca.NETConfiguration

App.config Section Protection setting

C#:add Assembly property.

[Assembly: Moca.Configuration.SectionProtection(Moca.Configuration.ProtectionProviderType.DPAPI, "Section Name")]

VB:add Assembly property.

<Assembly: Moca.Configuration.SectionProtection(Moca.Configuration.ProtectionProviderType.DPAPI, "Section Name")> 

Protection Provider Type DPAPI or RSA.

Program Startup execute method.

Moca.Configuration.SectionProtector.Protect()

Other Libraries

Moca.NET Organization

Visual Studio Extensions

Sample

For Development

  • Visual Studio 2019

License

Microsoft Public License (MS-PL)

http://opensource.org/licenses/MS-PL