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

📄 vernamdlg.h

📁 包涵了密码学教程里面的大部分加密算法
💻 H
字号:
#if !defined(AFX_VERNAMDLG_H__8E2D7A39_2E3B_40D6_92B8_D885BB439CBF__INCLUDED_)
#define AFX_VERNAMDLG_H__8E2D7A39_2E3B_40D6_92B8_D885BB439CBF__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CVernamDlg dialog

class CVernamDlg : public CDialog
{
// Construction
public:
	bool BinToChar(char scStr[8], char dsCh);
	bool BinToString(char* scStr, char* dsStr);
	BOOL pick(char ch, int n);
	CVernamDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CVernamDlg)
	enum { IDD = IDD_VERNAM };
	CString	m_strBCipher;
	CString	m_strBKey;
	CString	m_strBPlainText;
	CString	m_strCipher;
	CString	m_strKey;
	CString	m_strPlainText;
	CString	m_strToPlainText;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CVernamDlg)
	afx_msg void OnVernamEncrypt();
	afx_msg void OnVernamDecrypt();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_VERNAMDLG_H__8E2D7A39_2E3B_40D6_92B8_D885BB439CBF__INCLUDED_)

⌨️ 快捷键说明

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