Group: Cryptography Reference - Library: advapi32
How to create MD-5 and SHA-1 hash values from a string
A class that encrypts and decrypts files using Cryptography API Functions
BOOL WINAPI CryptHashData(
HCRYPTHASH hHash,
BYTE* pbData,
DWORD dwDataLen,
DWORD dwFlags
); DECLARE INTEGER CryptHashData IN advapi32;
INTEGER hHash,;
STRING @ pbData,;
LONG dwDataLen,;
LONG dwFlags
hHash [in] Handle of the hash object.
pbData [in] Pointer to a buffer containing the data to be added to the hash object.
dwDataLen [in] Number of bytes of data to be added. This must be zero if the CRYPT_USERDATA flag is set.
dwFlags [in] Ignore.
If the function succeeds, the return value is TRUE.
This function and CryptHashSessionKey can be called multiple times to compute the hash of long or discontinuous data streams.
Home