Specifies a hash algorithm.

Namespace:  DidiSoft
Assembly:  PGPLib (in PGPLib.dll) Version: 1.6.3.19546

Syntax

C#
public enum HashAlgorithm
Visual Basic (Declaration)
Public Enumeration HashAlgorithm
Visual C++
public enum class HashAlgorithm

Members

Member nameDescription
SHA1
Secure Hash Algorithm (SHA-1)
SHA256
Secure Hash Algorithm 256 bit (SHA-2 256)
SHA384
Secure Hash Algorithm 384 bit (SHA-2 384)
SHA512
Secure Hash Algorithm 512 bit (SHA-2 512)
SHA224
Secure Hash Algorithm 224 bit (SHA-2 224)
MD5
Message Digest 5
RIPEMD160
RIPEMD-160, 160-bit message digest algorithm (RACE Integrity Primitives Evaluation Message Digest)
MD2
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