|
QuickHash Library |
Type Library |
|
QHASH_StringHexDigest
BSTR QHASH_StringHexDigest( [ in ] int nAlgID, [
in , string ] unsigned char* pSrc, [ in ] boolean bUpper
);
Return value
The hexadecimal representation of the message digest/checksum.
Parameters
nAlgID
[in] The ID of the hash/checksum
algorithm selected for calculations. For example, nAlgID has to be set
to SHA1_ALGID when you need to calculate the digest using
SHA-1 hash algorithm.
Note. All supported hash/checksum
algorithms with their corresponding IDs are specified in the
Predefined Constants List.
pSrc
[in] A null-terminated
string for which to calculate the message digest/checksum.
bUpper
[in] Uppercase flag. If bUpper
is False, the received message digest/checksum represents a lowercase string,
otherwise it represents an uppercase string.
Remarks
Calculates and returns the message digest/checksum for a
null-terminated string. The digest/checksum is returned as a
hexadecimal string.
Note. If the result is an empty string call
QHASH_GetLastError
function for the error code.
VB Example
Private Sub MyButton_Click()
'Calculate and Show the digest in hexadecimal representation
MsgBox QHASH_StringHexDigest(MD5_ALGID, "Hello World!", True)
End Sub
|
|
Type Library Overview
| Type Library Functions
|
Useful Links | HashCalc
See Also
QHASH_StringDigest,
QHASH_BlockHexDigest,
QHASH_FileHexDigest,
QHASH_GetLastError
|