<PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.0-preview.3.23174.8" />

RsaProtectedConfigurationProvider

Provides a ProtectedConfigurationProvider instance that uses RSA encryption to encrypt and decrypt configuration data.
using System.Security.Cryptography; using System.Xml; namespace System.Configuration { public sealed class RsaProtectedConfigurationProvider : ProtectedConfigurationProvider { public string KeyContainerName { get { throw new PlatformNotSupportedException(); } } public string CspProviderName { get { throw new PlatformNotSupportedException(); } } public bool UseMachineContainer { get { throw new PlatformNotSupportedException(); } } public bool UseOAEP { get { throw new PlatformNotSupportedException(); } } public bool UseFIPS { get { throw new PlatformNotSupportedException(); } } public RSAParameters RsaPublicKey { get { throw new PlatformNotSupportedException(); } } public override XmlNode Decrypt(XmlNode encryptedNode) { throw new PlatformNotSupportedException(); } public override XmlNode Encrypt(XmlNode node) { throw new PlatformNotSupportedException(); } public void AddKey(int keySize, bool exportable) { throw new PlatformNotSupportedException(); } public void DeleteKey() { throw new PlatformNotSupportedException(); } public void ImportKey(string xmlFileName, bool exportable) { throw new PlatformNotSupportedException(); } public void ExportKey(string xmlFileName, bool includePrivateParameters) { throw new PlatformNotSupportedException(); } } }