资源简介
MD5值算法 C++实现
bool GetFileMd5(char *pMd5, const char *pFileName);

代码片段和文件信息
/******************************************************************************
* 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. *
* *
******************************************************************************
MD5C.C - RSA Data Security Inc. MD5 message-digest algorithm
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.
*/
#include “stdafx.h“
#include “md5.h“
/* Constants for MD5Transform routine.
*/
#define S11 7
#define S12 12
#define S13 17
#define S14 22
#define S21 5
#define S22 9
#define S23 14
#define S24 20
#define S31 4
#define S32 11
#define S33 16
#define S34 23
#define S41 6
#define S42 10
#define S43 15
#define S44 21
/* F G H and I are basic MD5 functions.
*/
#define F(x y z) (((x) & (y)) | ((~x) & (z)))
#define G(x y z) (((x) & (z)) | ((y) & (~z)))
#define H(x y z) ((x) ^ (y) ^ (z))
#define I(x y z) ((y) ^ ((x) | (~z)))
/* ROTATE_LEFT rotates x left n bits.
*/
#define ROTATE_LEFT(x n) (((x) << (n)) | ((x) >> (32
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4961 2010-12-16 20:00 md5.h
文件 12349 2010-12-17 09:28 md5.cpp
----------- --------- ---------- ----- ----
17310 2
相关资源
- 标准的MD5源码md5.cmd5.h使用说明文件
- MD5算法源代码(MFC)
- vc++ MD5算法源码
- MD5算法C++实现
- 文件MD5查看器(VC++MFC)源代码
- VC6.0 C++ MD5验证源码文件和字符串验证
- 获取进程信息和计算进程文件的MD5码
- MFC vc6.0 RSA DES MD5 加密解密算法
- MD5 摘要算法C语言实现
- ASP版hmac和md5加密函数,支持中文,带
- MFC实现MD5值生成工具文件和字符串都
- HMAC-MD5 C语言算法
- MD5 碰撞生成器 C++源码
- 常用加密算法AES、RSA、DES、MD5、TEA、
- MD5 C++实现代码,带注释
- C语言 3DES、AES、RC6、TEA、RSA、MD5、S
- MD5-SHA1-SHA256算法C源码
- md5加密算法 C语言经过测试验证完整版
- 趣味编程.pdf
- MFC 计算文件MD5码 VC++
- c语言实现获取文件的md5哈希值
- MD5算法c++程序设计实现
- C语言版本Linux环境下MD5加密函数
- vc 源码 md5字符串加密算法 绝对可以用
- 文件MD5查看器工具软件
- VS2010 MFC 选择并获得文件的MD5
- C++ 使用MD5算法对密码进行加密
- C语言计算文件的md5值(长度32)
- MD5加密算法C++实现
- C++ HMAC SHA1
评论
共有 条评论