使用hashlib++ 进行md5加密

下载源码,使用make,make  install进行安装,把头文件添加到path变量中

然后使用 g++ -o hello hello.cpp -lhl++   就可以编译通过 测试程序。

[root@localhost tools]# g++ -o hello hello.cpp -lhl++
[root@localhost tools]# ./hello
5eb63bbbe01eeed093cb22bb8f5acdc3

如果要对jpeg图片进行加密,则建议使用这里的源码

http://www.dssz.org/472925.html 

原文地址:https://www.cnblogs.com/xianqingzh/p/2179039.html