QuickHash Library Type Library


int QHASH_GetDigestSize( [ in ]int nAlgID );



    [in] The ID of the hash/checksum algorithm. For example, nAlgID has to be set to SHA1_ALGID when you need to get the digest size for SHA-1 hash algorithm.

    Note. All supported hash/checksum algorithms with their corresponding IDs are specified in the Predefined Constants List.


Returns the size of the message digest/checksum for the specified algorithm, or 0 when the nAlgID is invalid.

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), QHASH_GetDigestSize( MD5_ALGID ), True)
End Sub



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


See Also    QHASH_StringDigest, QHASH_ConvertToHex



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