带密钥的md5算法库md5lib.h共有下列函数: char* MDString (char *) /*输入任意一个字符串,经过md5算法处理后...
代码说明:
带密钥的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,其运行结果在本文后面。-Md5 algorithm with a key repository md5lib.h total of the following functions: char* MDString (char*) /* enter any one string, after md5 algorithm processing, return the result: a fixed-length (32 characters) string*/char* MDFile (char*) /* enter any of the 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) /* input a string of arbitrary text, and a string key used as key, after hmac_md5 algorithm processing, return processing results: a fixed-length string (32 characters)*/specific examples of the use of methods can be found sample.c, the results
下载说明:请别用迅雷下载,失败请重下,重下不扣分!