/******************************************************************************
* Copyright (C) 2000 by Robert Hubley. *
* All rights reserved. *
* *
* This software is provided ``AS IS'' and any express or implied *
* warranties, including, but not limited to, the implied warranties of *
* merchantability and fitness for a particular purpose, are disclaimed. *
* In no event shall the authors be liable for any direct, indirect, *
* incidental, special, exemplary, or consequential damages (including, but *
* not limited to, procurement of substitute goods or services; loss of use, *
* data, or profits; or business interruption) however caused and on any *
* theory of liability, whether in contract, strict liability, or tort *
* (including negligence or otherwise) arising in any way out of the use of *
* this software, even if advised of the possibility of such damage. *
* *
******************************************************************************
MD5.H - header file for MD5C.C
Port to Win32 DLL by Robert Hubley 1/5/2000
Original Copyright:
Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
rights reserved.
License to copy and use this software is granted provided that it
is identified as the "RSA Data Security, Inc. MD5 Message-Digest
Algorithm" in all material mentioning or referencing this software
or this function.
License is also granted to make and use derivative works provided
that such works are identified as "derived from the RSA Data
Security, Inc. MD5 Message-Digest Algorithm" in all material
mentioning or referencing the derived work.
RSA Data Security, Inc. makes no representations concerning either
the merchantability of this software or the suitability of this
software for any particular purpose. It is provided "as is"
without express or implied warranty of any kind.
These notices must be retained in any copies of any part of this
documentation and/or software.
*/
/******************************************************************************
* Copyright (C) 2000 by Robert Hubley. *
* All rights reserved. *
* *
* This software is provided ``AS IS'' and any express or implied *
* warranties, including, but not limited to, the implied warranties of *
* merchantability and fitness for a particular purpose, are disclaimed. *
* In no event shall the authors be liable for any direct, indirect, *
* incidental, special, exemplary, or consequential damages (including, but *
* not limited to, procurement of substitute goods or services; loss of use, *
* data, or profits; or business interruption) however caused and on any *
* theory of liability, whether in contract, strict liability, or tort *
* (including negligence or otherwise) arising in any way out of the use of *
* this software, even if advised of the possibility of such damage. *
* *
******************************************************************************
*/
/******************************************************************************
* 2002-4-18 Modified by Liguangyi. *
* struct MD5_CTX ==> class CMD5. *
* Take off the Globals Functions *
******************************************************************************
*/
#ifndef _PUBLIC_MD5_H
#define _PUBLIC_MD5_H
#include <wtypes.h>
/* MD5 Class. */
class _declspec(dllexport) CMD5
{
public:
CMD5();
virtual ~CMD5();
void MD5Update(LPBYTE pbyInput, unsigned int inputLen);
void MD5Final(BYTE byDigest[16]);
BOOL CountFile_MD5(LPCTSTR lpszFilename, BYTE byMD5[16]);
private:
unsigned long int state[4]; /* state (ABCD) */
unsigned long int count[2]; /* number of bits, modulo 2^64 (lsb first) */
unsigned char buffer[64]; /* input buffer */
unsigned char PADDING[64]; /* What? */
private:
void MD5Init();
void MD5Transform(unsigned long int state[4], unsigned char block[64]);
void MD5_memcpy(unsigned char* output, unsigned char* input,unsigned int len);
void Encode(unsigned char *output, unsigned long int *input,unsigned int len);
void Decode(unsigned long int *output, unsigned char *input, unsigned int len);
void MD5_memset(unsigned char *output,int value,unsigned int len);
};
#endif
没有合适的资源?快使用搜索试试~ 我知道了~
老九工具资源库系列二:(版本号 1.15.8.916) 以库函数的形式提供的网络编程资源,包括常见的如base64编码,pop3编码、smtp编码、md5加密、crc校验码、拨号服务、网络数据包构造与分析等网络相关的编程资源。 编译时使用包含响应的头文件,并连接对应的lib文件即可;运行时请包含对应的dll文件; 老九工具资源库共五套,包括通用工具、网络处理工具、编程控件、图形处理工具、证券处理工具等;陆续推出中,敬请关注。 联系邮箱: hlsoft@21cn.com
资源推荐
资源详情
资源评论
















收起资源包目录

















共 14 条
- 1
- 2
- 3
资源评论

No9
- 粉丝: 4
- 资源: 23

上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
已下载
下载帮助

内容简介:HLNetTool.rar HLNetTool HLNetTool POP3.H md5.h ipbase.H StdAfx.h NetBuffer.h Resource.h Release DialupService.h HLNetTool.h inetfunc.h SMTP.H NetPacket.h
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
