#include <string>
#include <iostream>
using namespace std;
#include "md5.h"
int main()
{
MD5 md5;
string message = "secretU";
char arr[message.size()];
strcpy(arr, message.c_str());
//encrypting the message "secretU", it will return a string of hexadecimals
string result = md5.digestString(arr);
//print the result of the encrypted message.
cout << result;
return 0;
}
Result of the output in hexadecimals
1853c517b0e1095a341210f1a4b422e6
Once i tried to convert to Decimal, it needs 125 bit size? However, unsigned long long can only contain up to 64 bits, is there a way to store this long integer so that i can modulo it with the value i want?
Convert hexadecimals to decimal
32336430049777443053240099092194140902