<PackageReference Include="System.Configuration.ConfigurationManager" Version="6.0.0-preview.1.21102.12" />

RsaProtectedConfigurationProvider

Provides a ProtectedConfigurationProvider instance that uses RSA encryption to encrypt and decrypt configuration data.
public string CspProviderName { get; }

Gets the name of the Windows cryptography API (crypto API) cryptographic service provider (CSP).

public string KeyContainerName { get; }

Gets the name of the key container.

public RSAParameters RsaPublicKey { get; }

Gets the public key used by the provider.

public bool UseFIPS { get; }

Gets a value indicating whether the provider uses FIPS.

public bool UseMachineContainer { get; }

Gets a value that indicates whether the RsaProtectedConfigurationProvider object is using the machine key container.

public bool UseOAEP { get; }

Gets a value that indicates whether the provider is using Optimal Asymmetric Encryption Padding (OAEP) key exchange data.

Initializes a new instance of the RsaProtectedConfigurationProvider class.

public void AddKey(int keySize, bool exportable)

Adds a key to the RSA key container.

public void DeleteKey()

Removes a key from the RSA key container.

public void ExportKey(string xmlFileName, bool includePrivateParameters)

Exports an RSA key from the key container.

public void ImportKey(string xmlFileName, bool exportable)

Imports an RSA key into the key container.