文件名称:MD5lib
介绍说明--下载内容均来自于网络,请自行研究使用
/* 带密钥的md5算法库md5lib.h共有下列函数:
char* MDString (char *)
输入任意一个字符串,经过md5算法处理后,返回结果:一个定长(32个字符)字符串
char* MDFile (char *)
输入任意一个文件名,文件内容经过md5算法处理后,返回结果:一个定长(32个字符)字符串
char* hmac_md5(char* text, char* key)
输入任意一个字符串text,和一个用做密钥的字符串key,经过hmac_md5算法处理,返回处理结果:一个定长字符串(32个字符)
具体使用方法可参考例子sample.c,其运行结果在本文后面。
注意在调用时需要添加头文件 #include "md5lib.h"
*/-/* Md5 algorithm with a key repository md5lib.h total of the following functions: char* MDString (char*) enter any string, after the md5 algorithm processing, return the result: a fixed length (32 characters) string to char* MDFile (char*) enter any file name, file contents through the md5 algorithm processing, return the result: a fixed length (32 characters) string char* hmac_md5 (char* text, char* key) enter any string text, and a string used as key key, after hmac_md5 algorithm processing and return the results: a fixed-length string (32 characters) can refer to specific examples of use sample.c, its operating results in later in this article . Note that the call need to add header file# include " md5lib.h" * /
char* MDString (char *)
输入任意一个字符串,经过md5算法处理后,返回结果:一个定长(32个字符)字符串
char* MDFile (char *)
输入任意一个文件名,文件内容经过md5算法处理后,返回结果:一个定长(32个字符)字符串
char* hmac_md5(char* text, char* key)
输入任意一个字符串text,和一个用做密钥的字符串key,经过hmac_md5算法处理,返回处理结果:一个定长字符串(32个字符)
具体使用方法可参考例子sample.c,其运行结果在本文后面。
注意在调用时需要添加头文件 #include "md5lib.h"
*/-/* Md5 algorithm with a key repository md5lib.h total of the following functions: char* MDString (char*) enter any string, after the md5 algorithm processing, return the result: a fixed length (32 characters) string to char* MDFile (char*) enter any file name, file contents through the md5 algorithm processing, return the result: a fixed length (32 characters) string char* hmac_md5 (char* text, char* key) enter any string text, and a string used as key key, after hmac_md5 algorithm processing and return the results: a fixed-length string (32 characters) can refer to specific examples of use sample.c, its operating results in later in this article . Note that the call need to add header file# include " md5lib.h" * /
(系统自动生成,下载前可以参看下载内容)
下载文件列表
MD5lib.h