chpassdlg.cpp

来自「利用RSA加密算法对输入的原文进行加密」· C++ 代码 · 共 69 行

CPP
69
字号
// chpassDlg.cpp : implementation file
//

#include "stdafx.h"
#include "RSA.h"
#include "chpassDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// chpassDlg dialog


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


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


BEGIN_MESSAGE_MAP(chpassDlg, CDialog)
	//{{AFX_MSG_MAP(chpassDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// chpassDlg message handlers

void chpassDlg::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData(true);
    length=m_in.GetLength();
//	m_out="";
	m_out=MRSA(m_in);
//	m_in=m_out;
	UpdateData(false);
	//RSA(m_in);
	AfxMessageBox(m_out);
	
}

void chpassDlg::OnCancel() 
{
	// TODO: Add extra cleanup here
	
//	CDialog::OnCancel();
}

CString chpassDlg::MRSA(CString m_in)
{
	return m_out;
}

⌨️ 快捷键说明

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