<分区>
Possible Duplicate:
In C++, How to get MD5 hash of a file?
我目前正在使用 Ubuntu 并希望计算 char*
的 MD5。想知道是否有只需要包含的预安装库,或者我是否必须下载专门设计的库?
<分区>
Possible Duplicate:
In C++, How to get MD5 hash of a file?
我目前正在使用 Ubuntu 并希望计算 char*
的 MD5。想知道是否有只需要包含的预安装库,或者我是否必须下载专门设计的库?
最佳答案
包含 openssl/MD5.h
并使用以下内容计算哈希值
MD5(<characters>, <length of it>, <the result(pointer)>);
关于c++ - 如何使用 C++ 计算 char* 的 MD5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3421809/