ComputeHash

<< Click to Display Table of Contents >>

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

ComputeHash

Previous pageReturn to chapter overviewNext page

Computes the hash value for the specified byte array.

 

pMethod - Hash algorithm, one of HMACMethodEnum equates.

pData - The input 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.

 

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