• 大小: 4.47MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-15
  • 语言: C/C++
  • 标签: RSA算法  MFC实现  

资源简介

代码简单易懂 有注释 能实现对字符串的加密解密

资源截图

代码片段和文件信息

// RSA算法演示.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “RSA算法演示.h“
#include “RSA算法演示Dlg.h“

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

/////////////////////////////////////////////////////////////////////////////
// CRSAApp

BEGIN_MESSAGE_MAP(CRSAApp CWinApp)
//{{AFX_MSG_MAP(CRSAApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
//    DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CRSAApp construction

CRSAApp::CRSAApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CRSAApp object

CRSAApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CRSAApp initialization

BOOL CRSAApp::InitInstance()
{
AfxEnableControlContainer();

// Standard initialization
// If you are not using these features and wish to reduce the size
//  of your final executable you should remove from the following
//  the specific initialization routines you do not need.

#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif

CRSADlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with Cancel
}

// Since the dialog has been closed return FALSE so that we exit the
//  application rather than start the application‘s message pump.
return FALSE;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-06-11 14:47  RSA算法演示\
     目录           0  2016-06-11 14:47  RSA算法演示\Debug\
     文件     3662848  2016-06-11 14:47  RSA算法演示\Debug\RSA算法演示.bsc
     文件      114758  2016-06-11 14:47  RSA算法演示\Debug\RSA算法演示.exe
     文件      199548  2016-06-11 14:47  RSA算法演示\Debug\RSA算法演示.ilk
     文件       15483  2016-06-11 14:39  RSA算法演示\Debug\RSA算法演示.obj
     文件     6947152  2016-06-11 12:27  RSA算法演示\Debug\RSA算法演示.pch
     文件      386048  2016-06-11 14:47  RSA算法演示\Debug\RSA算法演示.pdb
     文件        3732  2016-06-11 11:00  RSA算法演示\Debug\RSA算法演示.res
     文件           0  2016-06-11 14:39  RSA算法演示\Debug\RSA算法演示.sbr
     文件       37102  2016-06-11 14:47  RSA算法演示\Debug\RSA算法演示Dlg.obj
     文件           0  2016-06-11 14:47  RSA算法演示\Debug\RSA算法演示Dlg.sbr
     文件      105600  2016-06-11 12:27  RSA算法演示\Debug\StdAfx.obj
     文件     1374077  2016-06-11 12:27  RSA算法演示\Debug\StdAfx.sbr
     文件      205824  2016-06-11 14:47  RSA算法演示\Debug\vc60.idb
     文件      372736  2016-06-11 14:47  RSA算法演示\Debug\vc60.pdb
     文件        3645  2016-06-11 09:32  RSA算法演示\ReadMe.txt
     目录           0  2016-06-11 09:32  RSA算法演示\res\
     文件        1287  2016-06-11 10:15  RSA算法演示\resource.h
     文件        1078  2016-06-11 09:32  RSA算法演示\res\RSA算法演示.ico
     文件         403  2016-06-11 09:32  RSA算法演示\res\RSA算法演示.rc2
     文件       37108  2016-06-11 11:00  RSA算法演示\RSA算法演示.APS
     文件        1908  2016-06-11 14:47  RSA算法演示\RSA算法演示.clw
     文件        2045  2016-06-11 09:32  RSA算法演示\RSA算法演示.cpp
     文件        4267  2016-06-11 14:45  RSA算法演示\RSA算法演示.dsp
     文件         530  2016-06-11 09:32  RSA算法演示\RSA算法演示.dsw
     文件        1315  2016-06-11 09:32  RSA算法演示\RSA算法演示.h
     文件       50176  2016-06-11 14:47  RSA算法演示\RSA算法演示.ncb
     文件       49664  2016-06-11 14:47  RSA算法演示\RSA算法演示.opt
     文件        1344  2016-06-11 14:47  RSA算法演示\RSA算法演示.plg
     文件        8716  2016-06-11 11:00  RSA算法演示\RSA算法演示.rc
............此处省略4个文件信息

评论

共有 条评论