GTToolBox/GTEncryption/GTEncryptionMDFive.c
/* Digests a string and prints the result.*/
Digests a string and prints the result.
Digests a string and prints the result .
void  ZX_MD5HexByte16(char *inString,char *md5HexByte16)
{
    MD5_CTX context;
    unsigned char digest[16+1];
    unsigned int inStringLen;
    inStringLen = (int)strlen (inString);
    ZX_MD5Init(&context);
    ZX_MD5Update(&context,(unsigned char*)inString, inStringLen);
    ZX_MD5Final(digest, &context);
    memcpy(md5HexByte16,digest,16);
}
void ZX_MD5HexByte16 ( char * inString , char * md5HexByte16 ) { MD5_CTX context ; unsigned char digest [ 16 + 1 ] ; unsigned int inStringLen ; inStringLen = ( int ) strlen ( inString ) ; ZX_MD5Init ( & context ) ; ZX_MD5Update ( & context , ( unsigned char * ) inString , inStringLen ) ; ZX_MD5Final ( digest , & context ) ; memcpy ( md5HexByte16 , digest , 16 ) ; }
Digests a string and prints the result.
Digests a string and prints the result .