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

📄 encrypt.h

📁 使用VC编程实现DES的加密与解密算法
💻 H
字号:
class Encrypt  
{
public:
	Encrypt();
	virtual ~Encrypt();
	void Des_Encrypt(char out[8],char in[8],bool subkey[16][48]);
	void Des_Decrypt(char out[8],char in[8],bool subkey[16][48]);
	void Des_CreateSubkey(const char key[8],bool subkey[16][48]);
	void Des_f(bool in[32], bool subkey[48]);
	void Des_s(bool out[32],const bool in[48]);
	void Table_Transform(bool *out,bool *in,const char *Table,int len);
	void Xor(bool *a,bool *b,int len);
	void Shift_left(bool *in,int len,int loop);
	void ByteToBit(bool *out,const char *in,int len);
	void BitToByte(char *out,const bool *in,int len);
protected:
    const static char Table_IP[64];
	const static char Table_IPR[64];
	const static char Table_E[48];
	const static char Table_P[32];
    const static char Table_PC1[56];
	const static char Table_PC2[48];
	const static char Table_LS[16];
	const static char Sbox[8][4][16];
};

⌨️ 快捷键说明

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