playfair_cipher.h

来自「这是我编的包括古典密码」· C头文件 代码 · 共 58 行

H
58
字号
#if !defined(AFX_PLAYFAIR_CIPHER_H__8387E10C_0D51_4A93_844C_8AD7BF30F0D5__INCLUDED_)
#define AFX_PLAYFAIR_CIPHER_H__8387E10C_0D51_4A93_844C_8AD7BF30F0D5__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CPlayfair_Cipher dialog

class CPlayfair_Cipher : public CDialog
{
// Construction
public:
	void Trans_Dialog(CWnd *temp);
	CString Settle_Plaintext(CString phrase);
	CString Scan_KeyWord(CString phrase);
	CPlayfair_Cipher(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CPlayfair_Cipher)
	enum { IDD = IDD_PLAYFAIR_CIPHER };
	CString	m_KeyWord;
	CString	m_ORKeyWord;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CPlayfair_Cipher)
	afx_msg void OnDecipher();
	afx_msg void OnEncipher();
	afx_msg void OnSetkey();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	CString m_RKeyWord;
	CString m_RPlaintext;
	CString m_Ciphertext;
	CString m_Plaintext;
};

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

#endif // !defined(AFX_PLAYFAIR_CIPHER_H__8387E10C_0D51_4A93_844C_8AD7BF30F0D5__INCLUDED_)

⌨️ 快捷键说明

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