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

📄 main1dlg.cpp

📁 实现文件加密解密与数字签名,主要采用RES,AES算法
💻 CPP
字号:
// Main1Dlg.cpp : implementation file
//

#include "stdafx.h"
#include "PKI.h"
#include "Main1Dlg.h"
#include "DES1Dlg.h"
#include "AES1Dlg.h"
#include "PKIDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMain1Dlg dialog


CMain1Dlg::CMain1Dlg(CWnd* pParent /*=NULL*/)
	: CDialog(CMain1Dlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CMain1Dlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CMain1Dlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CMain1Dlg)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CMain1Dlg, CDialog)
	//{{AFX_MSG_MAP(CMain1Dlg)
	ON_BN_CLICKED(IDC_BUTTON1, OnDESENC)
	ON_BN_CLICKED(IDC_BUTTON2, OnAESENC)
	ON_BN_CLICKED(IDC_BUTTON3, OnButton3)
	ON_BN_CLICKED(IDC_BUTTON4, OnEXIT)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMain1Dlg message handlers

void CMain1Dlg::OnDESENC() 
{
	// TODO: Add your control notification handler code here
	CDialog::OnCancel();
	CDES1Dlg dlg;
	dlg.DoModal();
}

void CMain1Dlg::OnAESENC() 
{
	// TODO: Add your control notification handler code here
	CDialog::OnCancel();
	CAES1Dlg dlg;
	dlg.DoModal();
}

void CMain1Dlg::OnButton3() 
{
	// TODO: Add your control notification handler code here
	CDialog::OnCancel();
	CPKIDlg dlg;
	dlg.DoModal();
}

void CMain1Dlg::OnEXIT() 
{
	// TODO: Add your control notification handler code here
	CDialog::OnCancel();
}

⌨️ 快捷键说明

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