上传者: 38500607
|
上传时间: 2021-12-23 22:08:13
|
文件大小: 45KB
|
文件类型: -
测试结果和百度百科测试例子一致。
实现过程中需要注意事项:最后把四个变量A B C D 链接成结果时 ,注意变量高低位的先后顺序,具体参考 LinkResult()方法。
md5.h
#ifndef _MD5_H_
#define _MD5_H_
#include
#include
using namespace std;
class MD5
{
public:
typedef unsigned char uchar8; //make sure it is 8bit
typedef char char8; //make sure