IPWorks Encrypt 2020 C++ Edition

Questions / Feedback?

Hash Class

Properties   Methods   Events   Configuration Settings   Errors  

The Hash class allows you to compute a hash using various algorithms.

Syntax

Hash

Remarks

The Hash component allows you to compute a hash using various algorithms including SHA1, SHA224, SHA256, SHA384, SHA512, MD2, MD4, MD5, RIPEMD160, MD5SHA1, HMACMD5, HMACSHA1, HMACSHA224, HMACSHA256, HMACSHA384, HMACSHA512, etc.

To begin, first select the algorithm you wish to use when computing the hash. Common choices include MD5 and SHA1. For a full list of supported algorithms see the Algorithm property.

Next specify the data to hash. Input Notes

The class will determine the source of the input based on which properties are set.

The order in which the input properties are checked are as follows:

When a valid source is found the search stops.

Call the ComputeHash method to hash the data. The HashValue property will hold the computed hash. By default the hash value is hex encoded for ease of use, but you may disable this by setting EncodeHash to False.

Property List


The following is the full list of the properties of the class with short descriptions. Click on the links for further details.

AlgorithmThe algorithm used to create the hash.
EncodeHashWhether the hash value is hex encoded.
HashValueThe hash value.
InputFileThe file to process.
InputMessageThe message to process.
KeyThe secret key for the hash algorithm.

Method List


The following is the full list of the methods of the class with short descriptions. Click on the links for further details.

ComputeHashComputes a hash.
ConfigSets or retrieves a configuration setting.
HashBlockComputes the hash value of specified data.
ResetResets the class.
SetInputStreamSets the stream from which the class will read data.

Event List


The following is the full list of the events fired by the class with short descriptions. Click on the links for further details.

ErrorInformation about errors during data delivery.
ProgressFired as progress is made.

Configuration Settings


The following is a list of configuration settings for the class with short descriptions. Click on the links for further details.

HashSizeThe size of the computed hash code, read-only.
SHA3VersionThe version of the SHA3 implementation.
BuildInfoInformation about the product's build.
CodePageThe system code page used for Unicode to Multibyte translations.
LicenseInfoInformation about the current license.
ProcessIdleEventsWhether the class uses its internal event loop to process events when the main thread is idle.
SelectWaitMillisThe length of time in milliseconds the class will wait when DoEvents is called if there are no events to process.
UseInternalSecurityAPITells the class whether or not to use the system security libraries or an internal implementation.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Encrypt 2020 C++ Edition - Version 20.0 [Build 8155]