SmimeResetToDefaults Method
Resets S/MIME settings to default values.

Namespace: MailBee.Security
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
public bool ResetToDefaults()

Return Value

Type: Boolean
true if succeeded; otherwise, false.
MailBeeCryptoProviderWin32ExceptionFailed to create an instance of CryptoServiceProvider representing the default CSP and ThrowExceptions is true.

This method reverts Provider property value back to the default CSP (Base). This property is meaningful for .NET Core 1.0/1.1 edition only.

The algorithm to use for encryption (EncryptionAlgorithm property) is set to RSA DES (szOID_RSA_DES_EDE3_CBC).

The algorithm to use for signing messages (HashAlgorithm property) is set to SHA1 (szOID_OIWSEC_sha1).

The example is available in CryptoServiceProvider topic.
See Also