RSA加密算法


MFC实现的RSA安全加密算法,适合初学者使用
资源截图
代码片段和文件信息
// RSAKeyGenerator.cpp : 定义应用程序的类行为。
//

#include “stdafx.h“
#include “RSAKeyGenerator.h“
#include “RSAKeyGeneratorDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CRSAKeyGeneratorApp

BEGIN_MESSAGE_MAP(CRSAKeyGeneratorApp CWinApp)
ON_COMMAND(ID_HELP &CWinApp::onhelp)
END_MESSAGE_MAP()


// CRSAKeyGeneratorApp 构造

CRSAKeyGeneratorApp::CRSAKeyGeneratorApp()
{
// TODO: 在此处添加构造代码,
// 将所有重要的初始化放置在 InitInstance 中
}


// 唯一的一个 CRSAKeyGeneratorApp 对象

CRSAKeyGeneratorApp theApp;


// CRSAKeyGeneratorApp 初始化

BOOL CRSAKeyGeneratorApp::InitInstance()
{
// 如果一个运行在 Windows XP 上的应用程序清单指定要
// 使用 ComCtl32.dll 版本 6 或更高版本来启用可视化方式,
//则需要 InitCommonControlsEx()。否则,将无法创建窗口。
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
// 将它设置为包括所有要在应用程序中使用的
// 公共控件类。
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);

CWinApp::InitInstance();

// 标准初始化
// 如果未使用这些功能并希望减小
// 最终可执行文件的大小,则应移除下列
// 不需要的特定初始化例程
// 更改用于存储设置的注册表项
// TODO: 应适当修改该字符串,
// 例如修改为公司或组织名
SetRegistryKey(_T(“应用程序向导生成的本地应用程序“));

CRSAKeyGeneratorDlg dlg;
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: 在此处放置处理何时用“确定”来关闭
//  对话框的代码
}
else if (nResponse == IDCANCEL)
{
// TODO: 在此放置处理何时用“取消”来关闭
//  对话框的代码
}

// 由于对话框已关闭,所以将返回 FALSE 以便退出应用程序,
//  而不是启动应用程序的消息泵。
return FALSE;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件    1847296  2012-12-03 09:05  RSAKeyGeneratordebugRSAKeyGenerator.exe

     文件    5789632  2012-12-03 09:05  RSAKeyGeneratordebugRSAKeyGenerator.ilk

     文件    7072768  2012-12-03 09:05  RSAKeyGeneratordebugRSAKeyGenerator.pdb

     文件        601  2012-11-30 17:15  RSAKeyGenerator
eleasePrivKey.txt

     文件        179  2012-11-30 17:15  RSAKeyGenerator
eleasePubKey.txt

     文件     311296  2012-12-03 09:32  RSAKeyGenerator
eleaseRSAKeyGenerator.exe

     文件       1264  2010-08-06 18:44  RSAKeyGeneratorRSAKeyGeneratorCryptoPPinclude3way.h

     文件        628  2010-08-06 18:44  RSAKeyGeneratorRSAKeyGeneratorCryptoPPincludeadler32.h

     文件        330  2010-08-06 18:44  RSAKeyGeneratorRSAKeyGeneratorCryptoPPincludeaes.h

     文件       8922  2010-08-06 18:44  RSAKeyGeneratorRSAKeyGeneratorCryptoPPincludealgebra.h

     文件      12666  2010-08-06 18:46  RSAKeyGeneratorRSAKeyGeneratorCryptoPPincludealgparam.h

     文件       2367  2010-08-06 18:44  RSAKeyGeneratorRSAKeyGeneratorCryptoPPincludearc4.h

     文件       4377  2010-08-06 18:46  RSAKeyGeneratorRSAKeyGeneratorCryptoPPincludeargnames.h

     文件      11956  2010-08-06 18:44  RSAKeyGeneratorRSAKeyGeneratorCryptoPPincludeasn.h

     文件       2008  2010-08-06 18:44  RSAKeyGeneratorRSAKeyGeneratorCryptoPPincludeauthenc.h

     文件       1344  2010-08-06 18:44  RSAKeyGeneratorRSAKeyGeneratorCryptoPPincludease32.h

     文件        912  2010-08-06 18:44  RSAKeyGeneratorRSAKeyGeneratorCryptoPPincludease64.h

     文件       2563  2010-08-06 18:44  RSAKeyGeneratorRSAKeyGeneratorCryptoPPincludeasecode.h

     文件        214  2010-08-06 18:44  RSAKeyGeneratorRSAKeyGeneratorCryptoPPincludeench.h

     文件       1239  2010-08-06 18:44  RSAKeyGeneratorRSAKeyGeneratorCryptoPPincludelowfish.h

     文件       1302  2010-08-06 18:44  RSAKeyGeneratorRSAKeyGeneratorCryptoPPincludelumshub.h

     文件       1123  2010-08-06 18:44  RSAKeyGeneratorRSAKeyGeneratorCryptoPPincludecamellia.h

     文件       2320  2010-08-06 18:44  RSAKeyGeneratorRSAKeyGeneratorCryptoPPincludecast.h

     文件       1412  2010-08-06 18:44  RSAKeyGeneratorRSAKeyGeneratorCryptoPPincludecbcmac.h

     文件       3388  2010-08-06 18:44  RSAKeyGeneratorRSAKeyGeneratorCryptoPPincludeccm.h

     文件       4057  2010-08-06 18:44  RSAKeyGeneratorRSAKeyGeneratorCryptoPPincludechannels.h

     文件       1612  2010-08-06 18:44  RSAKeyGeneratorRSAKeyGeneratorCryptoPPincludecmac.h

     文件      15604  2010-08-09 14:22  RSAKeyGeneratorRSAKeyGeneratorCryptoPPincludeconfig.h

     文件       8826  2010-08-06 18:46  RSAKeyGeneratorRSAKeyGeneratorCryptoPPincludecpu.h

     文件        998  2010-08-06 18:44  RSAKeyGeneratorRSAKeyGeneratorCryptoPPincludecrc.h

............此处省略166个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)