Topic Path: Symbol Reference > Classes > TIdHash128 Class > TIdHash128 Methods > HashValue Method > HashValue Method (string)
ContentsIndexHome
PreviousUpNext
TIdHash128.HashValue Method (string)

Implements calculation of a hash value for input data.

function HashValue(
    const ASrc: string
): T4x4LongWordRecord; overload;
Parameters 
Description 
ASrc 
String containing data used to calculate the hash value. 

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

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

The string-based variant of HashValue creates a TIdStream instance used to calculate the hash value, and calls the overloaded HashValue method. 

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.

TIdHash128.HashValue 

TIdHashMessageDigest 

IndySupport

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.