openssl

md5库

#include<openssl/md5.h> unsigned char *MD5(const unsigned char *d, unsigned long n, unsigned char *md);
返回值为哈希值的指针
如果md为NULL,即没有为md分配内存,会自动分配一块static内存,并放在返回值里
摘要长度16byte
g++ -o test.o test.cpp -lcrypto -lssl



全部评论

相关推荐

狸猫换offer:神通广大的互联网
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务