Set hashing algorithm. It's not a property following COM standards.
SupportedHashAlgo
Namespace: LLCryptoLib.HashAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
C# |
---|
public void SetAlgorithm( AvailableHash sh ) |
Visual Basic |
---|
Public Sub SetAlgorithm ( _ sh As AvailableHash _ ) |
Visual C++ |
---|
public: virtual void SetAlgorithm( AvailableHash sh ) sealed |
Parameters
- sh
- Type: LLCryptoLib.Hash..::..AvailableHash
Hash algorithm ID
Implements
IHash..::..SetAlgorithm(AvailableHash)
Examples

IHash hashObject = new Hash(); hashObject.SetAlgorithm(AvailableHash.MD5); Console.WriteLine("MD5 hash: {0}", hashObject.ComputeHashFileStyle(fileToHash.FullName, HexStyle.UNIX));