SmimeEncryptionAlgorithm Property |
Gets or sets the algorithm to use for encrypting messages.
Namespace: MailBee.SecurityAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public Algorithm EncryptionAlgorithm { get; set; }
Public Property EncryptionAlgorithm As Algorithm
Get
Set
Property Value
Type:
AlgorithmA reference to
Algorithm object representing the algorithm to be used for encrypting messages.
The default algorithm is RSA DES (szOID_RSA_DES_EDE3_CBC).
Exceptions Remarks Examples This sample sets AES-256 encryption algorithm (we assume if it's supported by the operating system).
using MailBee.Security;
Smime objSmime = new Smime();
objSmime.EncryptionAlgorithm = Algorithm.CreateInstanceByOid("2.16.840.1.101.3.4.1.42");
Imports MailBee.Security
Dim objSmime As Smime = New Smime
objSmime.EncryptionAlgorithm = Algorithm.CreateInstanceByOid("2.16.840.1.101.3.4.1.42")
See Also