Gets/Sets the preferred hashing algorithm used by all methods that produce OpenPGP signatures (all Sign and SigneAndEncrypt methods)
Namespace:
DidiSoftAssembly: PGPLib (in PGPLib.dll) Version: 1.6.3.19546
Syntax
| C# |
|---|
public HashAlgorithm Hash { get; set; } |
| Visual Basic (Declaration) |
|---|
Public Property Hash As HashAlgorithm |
| Visual C++ |
|---|
public: property HashAlgorithm Hash { HashAlgorithm get (); void set (HashAlgorithm value); } |
Remarks
Default is SHA1
Examples
This example demonstrates how to change 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