MD5 using C++ |
|||||||||||||
|
|
|||||||||||||
|
|
Source CodeWrapper classes: Implementation classes: Usage1. Add all 4 files to your project. Example#include "md5wrapper.h"
int main( int argc, char** argv )
{
// creating a wrapper object
md5wrapper md5;
// create a hash from a string
std::string hash1 = md5.getHashFromString("Hello World");
// create a hash from a file
std::string hash2 = md5.getHashFromFile("readme.txt");
return 0;
}
|
||||||||||||