Internet Direct (Indy) Version 9.0.1 Beta
TIdHash128.HashValue
Implements calculation of a hash value for input data.

function HashValue(ASrc: string): T4x4LongWordRecord; overload;
function HashValue(AStream: TStream): T4x4LongWordRecord; virtual; abstract; overload;
Parameters
AStream: TStream
Stream containing data used to calculate the hash value.

Returns
T4x4LongWordRecord - 128-bit hash value for the input data.

Description
HashValue is an overloaded T4x4LongWordRecordfunction in TIdHash128 that specifies the mechanism used to calculate the 128-bit hash value for the input data.

The stream-based variant of HashValue is an abstract virtual function that must be reimplemented in a descendant class, like TIdHashMessageDigest, to support the specifics of the hashing algorithm. The string-based variant of HashValue relies on this implementation to calculate the hash value.