SocketTools .NET Edition

SmtpClient.SecureHashAlgorithm Enumeration

Specifies the hash algorithms that the SmtpClient class supports.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

[Visual Basic]
<Flags>
Public Enum SmtpClient.SecureHashAlgorithm
[C#]
[Flags]
public enum SmtpClient.SecureHashAlgorithm

Remarks

The SmtpClient class uses the SecureHashAlgorithm enumeration to identify the message digest (hash) algorithm that was selected when a secure connection was established with the remote host.

Members

Member Name Description Value
hashNone No hash algorithm has been selected. This is not a secure connection with the server. 0
hashMD5 The MD5 algorithm was selected. This algorithm takes a message of arbitrary length and produces a 128-bit message digest. 1
hashSHA The SHA algorithm was selected. This algorithm produces a 160-bit message digest. 2

Requirements

Namespace: SocketTools

Assembly: SocketTools.SmtpClient (in SocketTools.SmtpClient.dll)

See Also

SocketTools Namespace