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

📄 rc4_cipher.h

📁 这是我编的包括古典密码
💻 H
字号:
#if !defined(AFX_RC4_CIPHER_H__3966D692_57D0_4B93_A5D5_F36FE0FFDDEF__INCLUDED_)
#define AFX_RC4_CIPHER_H__3966D692_57D0_4B93_A5D5_F36FE0FFDDEF__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// RC4_Cipher.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CRC4_Cipher dialog

class CRC4_Cipher : public CDialog
{
// Construction
public:
	void OnInitializeKey();
	void OnPreInitializeKey();
	void Trans_Dialog(CWnd *temp);
	CString Output_CString(int* Pinput);
	void Swap(int& x, int& y);
	void OnQuit();
	CRC4_Cipher(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CRC4_Cipher)
	enum { IDD = IDD_RC4CIPHER };
	int		m_Key1;
	int		m_Key2;
	int		m_Key3;
	int		m_Key4;
	CString	m_CK;
	CString	m_CS;
	CString	m_CKey_Stream;
	int		m_IStream_Size;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRC4_Cipher)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual BOOL OnInitDialog();

	// Generated message map functions
	//{{AFX_MSG(CRC4_Cipher)
	afx_msg void OnEncipher();
	afx_msg void OnDecipher();
	afx_msg void OnCreate();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void Evaluate_Key();
	int m_IS[256];
	CString m_Ciphertext;
	CString m_Plaintext;
	int IK[256];
	int IS[256];
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_RC4_CIPHER_H__3966D692_57D0_4B93_A5D5_F36FE0FFDDEF__INCLUDED_)

⌨️ 快捷键说明

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