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

📄 md5.h

📁 QQ自动登陆器
💻 H
字号:
/////////////////////////////////////////////////////////////////
//
//  MD5加密类
//
//  Bode
//  2007-01-29
//
//  参考资料:
//  Ronald L. Rivest (1992) "The MD5 Message-Digest Algorithm" 
//
/////////////////////////////////////////////////////////////////

#include "MD5_Global.h"

// MD5 context.
typedef struct {
    UINT4 state[4];             // state (ABCD) 
    UINT4 count[2];             // number of bits, modulo 2^64 (lsb first) 
    unsigned char buffer[64];   // input buffer
} MD5_CTX;

// MD5 Class
class MD5
{
private:
    static unsigned char PADDING[64];
public:
    static void MD5Init (MD5_CTX *);
    static void MD5Update (MD5_CTX *, unsigned char *, unsigned int);
    static void MD5Final (unsigned char [16], MD5_CTX *);
private:
    static void MD5Transform (UINT4 [4], unsigned char [64]);
    static void Encode (unsigned char *, UINT4 *, unsigned int);
    static void Decode (UINT4 *, unsigned char *, unsigned int);
    static void MD5_memcpy (POINTER, POINTER, unsigned int);
    static void MD5_memset (POINTER, int, unsigned int);
public:
    static void ToMD5(unsigned char [16],  void *, unsigned int);
};

⌨️ 快捷键说明

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