#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;
}
十六进制输出结果
1853c517b0e1095a341210f1a4b422e6
一旦我尝试转换为十进制,它需要 125 位大小?但是,unsigned long long 最多只能包含 64 位,有没有办法存储这个长整数,以便我可以将它与我想要的值取模?
将十六进制转换为十进制
32336430049777443053240099092194140902