SmimeHashAlgorithm Property |
Gets or sets the hash algorithm to use for signing messages with a digital signature.
Namespace: MailBee.SecurityAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax public Algorithm HashAlgorithm { get; set; }
Public Property HashAlgorithm As Algorithm
Get
Set
Property Value
Type:
AlgorithmA reference to
Algorithm object representing the hash algorithm to be used for signing messages.
The default algorithm is SHA1.
Exceptions Remarks Examples This sample sets SHA-256 hash algorithm if it's supported by the operating system (Thunderbird won't trust hashes produced by weaker algorithms).
using MailBee.Security;
Smime objSmime = new Smime();
objSmime.HashAlgorithm = Algorithm.CreateInstanceByOid("2.16.840.1.101.3.4.2.1");
Imports MailBee.Security
Dim objSmime As Smime = New Smime
objSmime.HashAlgorithm = Algorithm.CreateInstanceByOid("2.16.840.1.101.3.4.2.1")
See Also