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

📄 woxcrypt.h

📁 国外网络游戏 《The Kingdom of the Winds》 的服务端源码C+编写 有兴趣的可以
💻 H
字号:

// The following ifdef block is the standard way of creating macros which make exporting 
// from a DLL simpler. All files within this DLL are compiled with the WOXCRYPT_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see 
// WOXCRYPT_API functions as being imported from a DLL, wheras this DLL sees symbols
// defined with this macro as being exported.
#ifdef WOXCRYPT_EXPORTS
#define WOXCRYPT_API __declspec(dllexport)
#else
#define WOXCRYPT_API __declspec(dllimport)
#endif

// This class is exported from the WoxCrypt.dll
class WOXCRYPT_API xCrypt {
public:
	xCrypt();
	virtual ~xCrypt();
	/*+----------------------------+
	  | s = 侥喊锅龋			   |
	  | Message 皋矫瘤			   |
	  | Message_Size 皋矫瘤 荤捞令 |
	  |*\xAA\x00 器窃 皋矫瘤 傈眉**|
	  |return (int)Enc_size		   |
	  +----------------------------+*/
	int Enc_Pack (int s,char Message[],int size,int type,int enckey_type);

	/*+-------------------------------+
	  | s 侥喊锅龋                    |
	  | Message 皋矫瘤 (鞘夸郴侩父)   |
	  | size 沥犬茄 傈眉荤捞令        |
	  | type 4锅掳俊 甸绢哎 牢侥菩哦  |
	  |return (int)Dec_Size			  |
	  +-------------------------------+*/
	int Dec_Pack (int s,char Message[]);
};

extern	WOXCRYPT_API unsigned long		BackBuffer[2560][380]; // 归滚欺(荤侩臼窃)
extern	WOXCRYPT_API char				Messages[2560][2560]; // 汗龋拳等 巩厘
extern	WOXCRYPT_API char				Encrypted_Messages[2048][2560]; // 鞠龋拳等 巩厘(2048,2560)
extern	WOXCRYPT_API unsigned int		CK1[2560]; //虐1
extern	WOXCRYPT_API unsigned int		CK2[2560]; //虐2
extern	WOXCRYPT_API unsigned int		CK3[2560]; //虐3
extern	WOXCRYPT_API bool				encTRUE; //

extern WOXCRYPT_API int nWoxCrypt;

WOXCRYPT_API int fnWoxCrypt(void);

⌨️ 快捷键说明

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