IP*Works! Encrypt V9 - Online Help
IP*Works! Encrypt V9
Questions / Feedback?

Hash Bean

Properties   Methods   Events   Configuration Settings   Errors  

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

Syntax

IPWorksEncrypt.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. The component 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 bean 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 bean 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 component.
setInputStreamSets the stream from which the component will read data to encrypt or decrypt.

Event List


The following is the full list of the events fired by the bean 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 bean 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.
CodePageThe system code page used for Unicode to Multibyte translations.

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 9.0.6240.0