QuickHash Library Type Library


BSTR QHASH_ConvertToHex( [ in, size_is( nSrcLength ) ]const void* pByte, [ in ] int nSrcLength, [ in ]boolean bUpper );



    [in] A byte array to convert.


    [in] Length of the byte array. 


    [in] Uppercase flag. If bUpper is False, the result represents a lowercase string, otherwise it represents an uppercase string.


Returns the hexadecimal representation of a block of bytes using 'big-endian' order.

Note. CRC32, CRC16 and CRC16C algorithms use 'little-endian' representation of the checksum. All other algorithms use 'big-endian' representation of the message digest/checksum.

VB Example

Private Sub MyButton_Click()
    Dim Digest As QHASH_Digest
    'Calculate the digest 
    QHASH_StringDigest MD5_ALGID, Digest, "Hello World!"
    'Show the hexadecimal representation of the digest
    MsgBox QHASH_ConvertToHex(Digest.Value(0), MD5_DIGESTSIZE, True)
End Sub



Type Library Overview   |   Type Library Functions   |   Useful Links   |   HashCalc


See Also    QHASH_ConvertToHexLE, QHASH_StringDigest



Send Feedback to SlavaSoft Inc. Tell a friend about QuickHash Library