Specifies a hash algorithm.
Namespace: DidiSoft.PgpAssembly: 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 name | Value | Description | |
|---|---|---|---|
| SHA1 | 0 | Secure Hash Algorithm (SHA-1) | |
| SHA256 | 1 | Secure Hash Algorithm 256 bit (SHA-2 256) | |
| SHA384 | 2 | Secure Hash Algorithm 384 bit (SHA-2 384) | |
| SHA512 | 3 | Secure Hash Algorithm 512 bit (SHA-2 512) | |
| SHA224 | 4 | Secure Hash Algorithm 224 bit (SHA-2 224) | |
| MD5 | 5 | Message Digest 5 | |
| RIPEMD160 | 6 | RIPEMD-160, 160-bit message digest algorithm (RACE Integrity Primitives Evaluation Message Digest) | |
| MD2 | 7 | Message Digest 2 |
Examples
This example demonstrates how to specify the preferred hash algorithm used by the library.
CopyC#
CopyVB.NET
PGPLib pgp = new PGPLib();
pgp.Hash = HashAlgorithm.SHA256;Dim pgp As New PGPLib() pgp.Hash = HashAlgorithm.SHA256