#include "md5.h"
#include <iostream>
#include <string>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
ifstream ifile("130001.zpx", std::ios::binary);
//d41d8cd98f00b204e9800998ecf8427e 文件为空的值!
if ( !ifile)
{
cout << "IOError" << endl;
}
MD5 md5(ifile);
string str = md5.toString();
cout << str << endl;
return 0;
}
MD5();
MD5(const void* input, size_t length);
MD5(const string& str);
MD5(ifstream& in);
void update(const void* input, size_t length);
void update(const string& str);
void update(ifstream& in);
最新评论