<PackageReference Include="System.Security.Cryptography.Pkcs" Version="10.0.11" />

System.Security.Cryptography.Pkcs.Pkcs12ConfidentialityMode

Represents the kind of encryption associated with a PKCS#12 SafeContents value.
None = 1

The SafeContents value is not encrypted.

The SafeContents value is encrypted with a password.

The SafeContents value is encrypted using public key cryptography.

Unknown = 0

The kind of encryption applied to the SafeContents is unknown or could not be determined.