文件名称:MD5lib
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:4.7kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
/* 带密钥的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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.