⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cmmd5.h

📁 Soul的源代码,类似于劲舞团之类的游戏
💻 H
字号:
// MD5.h: interface for the CMD5 class.
//
//////////////////////////////////////////////////////////////////////

#ifndef __MATRIX_MD5_H
#define __MATRIX_MD5_H


#include <MatrixCore/System/CMString.h>

namespace MatrixCore
{

	namespace System
	{
		class CMD5  
		{
			typedef struct 
			{
				UINT state[4];                                   /* state (ABCD) */
				UINT count[2];        /* number of bits, modulo 2^64 (lsb first) */
				BYTE buffer[64];                         /* input buffer */
			} MD5_CTX;

		public:
			CMD5();
			virtual ~CMD5();
			CMString GetString(CMString str);
			void GetString(char *str,char &RetStr);

		protected:
			void MD5Init(MD5_CTX* ctx);
			void MD5Update(MD5_CTX* ctx, BYTE* input, UINT inputlen);
			void MD5Final(BYTE* digest, MD5_CTX* ctx);
		};
	}
}
#endif 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -