Specifies a hash algorithm.

Namespace: DidiSoft.Pgp
Assembly: DidiSoft.Pgp (in DidiSoft.Pgp.dll) Version: 1.7.3.35547

Syntax

C#
public enum HashAlgorithm
Visual Basic
Public Enumeration HashAlgorithm
Visual C++
public enum class HashAlgorithm

Members

Member nameValueDescription
SHA10 Secure Hash Algorithm (SHA-1)
SHA2561 Secure Hash Algorithm 256 bit (SHA-2 256)
SHA3842 Secure Hash Algorithm 384 bit (SHA-2 384)
SHA5123 Secure Hash Algorithm 512 bit (SHA-2 512)
SHA2244 Secure Hash Algorithm 224 bit (SHA-2 224)
MD55 Message Digest 5
RIPEMD1606 RIPEMD-160, 160-bit message digest algorithm (RACE Integrity Primitives Evaluation Message Digest)
MD27 Message Digest 2

Examples

This example demonstrates how to specify the preferred hash algorithm used by the library.
CopyC#
PGPLib pgp = new PGPLib();
pgp.Hash = HashAlgorithm.SHA256;
CopyVB.NET
Dim pgp As New PGPLib()
pgp.Hash = HashAlgorithm.SHA256

See Also