<PackageReference Include="System.Configuration.ConfigurationManager" Version="9.0.1" />

DpapiProtectedConfigurationProvider

Provides a ProtectedConfigurationProvider object that uses the Windows data protection API (DPAPI) to encrypt and decrypt configuration data.
public bool UseMachineProtection { get; }

Gets a value that indicates whether the DpapiProtectedConfigurationProvider object is using machine-specific or user-account-specific protection.

Initializes a new instance of the DpapiProtectedConfigurationProvider class using default settings.