工具:md5

支持内存,文件计算MD5,接口如下:

struct sMD5
{
uint8 md5[16];
char md5str[33];
};

static sMD5 GetMd5(const char *p,int nLen);

static sMD5 GetMd5File(const char *pName);

测试代码在

https://github.com/xjp342023125/Code/trunk/Src/Test/Md5

原文地址:https://www.cnblogs.com/xujinping/p/4322498.html