Returns the final message digest value as a hex string.
Public Declare Function MD5_HexDigest Lib "diCryptoSys.dll"
(ByVal strDigest As String, ByVal hContext As Long) As Long
nRet = MD5_HexDigest(strDigest, hContext)
long __stdcall MD5_HexDigest(char *szDigest, long hContext);
If successful, the return value is 0; otherwise it returns a non-zero error code.
This operation delivers the result of Add operations since the last Init or Reset operation.
The handle to the context hContext must have been set up with a
prior call to MD5_Init
.
The string variable szDigest must
have been set up with at least 32 (API_MAX_MD5_CHARS) characters (33 in a C program)
to receive the digest value in hex format.
Note that this digest operation is a destructive, read-once operation.
Once it has been performed,
the context must be reset before being used to calculate another digest value.
See MD5_AddString
and
MD5_AddBytes
MD5_Init
MD5_AddString
MD5_AddBytes
MD5_Reset