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

📄 homework2dlg.h

📁 加密作业,实现简单的DES加密,完全实现DES加密的工作流程
💻 H
字号:
// homework2Dlg.h : header file
//

#if !defined(AFX_HOMEWORK2DLG_H__F44641B8_6E5A_4B5D_AE88_2D40B5F8A2A3__INCLUDED_)
#define AFX_HOMEWORK2DLG_H__F44641B8_6E5A_4B5D_AE88_2D40B5F8A2A3__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CHomework2Dlg dialog

class CHomework2Dlg : public CDialog
{
// Construction
public:
	int  CharToDec(CString);
	int SW(int ori);
	int IP_1(int ori);
	int IP(int ori);
	int EP(int);
	int S0(int a);
	int S1(int);		
	int P4(int);
	int P8(int);
	int P10(int);
	int rleft_shift5(int,int);   //五位的循环左移函数
	void load_k(int);
	void Decrypt();
	void Encrypt();
	CHomework2Dlg(CWnd* pParent = NULL);	// standard constructor
	int FK(int fk,int k);
	CWnd *pWndPt;
	CWnd *pWndOt;
// Dialog Data
	//{{AFX_DATA(CHomework2Dlg)
	enum { IDD = IDD_HOMEWORK2_DIALOG };
	CButton	m_Clean;
	CEdit	m_Plaintext;
	CEdit	m_Ophertext;
	CEdit	m_Cryptograph;
	CColor	m_PlainStatic;
	CColor	m_OpherStatic;
	CColor	m_CryptoStatic;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CHomework2Dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg void OnChangePlainedit();
	afx_msg void OnChangeOpheredit();
	afx_msg void OnChangeCryptoedit();
	afx_msg void OnEncrypt();
	afx_msg void OnDecrypt();
	afx_msg void OnAbout();
	afx_msg void OnClean();
	afx_msg void OnExit();
	afx_msg void OnCryptograph();
	afx_msg void OnButton1();
	afx_msg void OnPlaintext();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_HOMEWORK2DLG_H__F44641B8_6E5A_4B5D_AE88_2D40B5F8A2A3__INCLUDED_)

⌨️ 快捷键说明

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