ComputeFileHash

<< Click to Display Table of Contents >>

Navigation:  EasyDotNet documentation > Classes > THMACManaged class > Methods >

ComputeFileHash

Previous pageReturn to chapter overviewNext page

Computes the hash value for the specified file.

 

pMethod - Hash algorithm, one of HMACMethodEnum equates.

pFile - The file to compute the hash code for.

pSecretKey - The secret key for HMAC encryption. The key can be any length. However, the recommended size is 64 bytes. If the key is more than 64 bytes long, it is hashed to derive a 64-byte key.

 

Returns: The computed hash code.

 

ComputeFileHash                 PROCEDURE(HMACMethodEnum pMethod, STRING pFile, <STRING pSecretKey>), STRING !it does not CLIP(pData) nor CLIP(pSecretKey)