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

📄 zideacryptor.h

📁 这是一个加解密程序
💻 H
字号:
/*  ZIdeaCryptor.h

    定义Idea加密算法类 CZIdeaCryptor

    张忠杰  2003-11-25
*/

#ifndef ZIdeaCryptorH
#define ZIdeaCryptorH
//---------------------------------------------------------------------------

#include "ZCryptor.h"

class CZIdeaCryptor: public CZCryptor
{
public:
    CZIdeaCryptor(const void *Key=NULL);
    ~CZIdeaCryptor();

    //设置密钥(密钥的长度128Bit)
    void SetKey(const void *Key);

	//读取密钥(密钥的长度128Bit)
	void GetKey(void *Key);

    //加密分组(分组的大小为64Bit)
    void Encrypt(void *Dst,const void *Src);

    //解密分组(分组的大小为64Bit)
    void Decrypt(void *Dst,const void *Src);

private:
    unsigned char _Key[16];
	unsigned __int16 EncSubKey[64];
	unsigned __int16 DecSubKey[64];
	void _IdeaCrypt(void *Dst,const void *Src,int Mark);
};

//---------------------------------------------------------------------------
#endif //ZIdeaCryptorH

⌨️ 快捷键说明

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