資源簡介
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??RSAKeyGenerator\debug\RSAKeyGenerator.exe
?????文件????5789632??2012-12-03?09:05??RSAKeyGenerator\debug\RSAKeyGenerator.ilk
?????文件????7072768??2012-12-03?09:05??RSAKeyGenerator\debug\RSAKeyGenerator.pdb
?????文件????????601??2012-11-30?17:15??RSAKeyGenerator\release\PrivKey.txt
?????文件????????179??2012-11-30?17:15??RSAKeyGenerator\release\PubKey.txt
?????文件?????311296??2012-12-03?09:32??RSAKeyGenerator\release\RSAKeyGenerator.exe
?????文件???????1264??2010-08-06?18:44??RSAKeyGenerator\RSAKeyGenerator\CryptoPP\include\3way.h
?????文件????????628??2010-08-06?18:44??RSAKeyGenerator\RSAKeyGenerator\CryptoPP\include\adler32.h
?????文件????????330??2010-08-06?18:44??RSAKeyGenerator\RSAKeyGenerator\CryptoPP\include\aes.h
?????文件???????8922??2010-08-06?18:44??RSAKeyGenerator\RSAKeyGenerator\CryptoPP\include\algebra.h
?????文件??????12666??2010-08-06?18:46??RSAKeyGenerator\RSAKeyGenerator\CryptoPP\include\algparam.h
?????文件???????2367??2010-08-06?18:44??RSAKeyGenerator\RSAKeyGenerator\CryptoPP\include\arc4.h
?????文件???????4377??2010-08-06?18:46??RSAKeyGenerator\RSAKeyGenerator\CryptoPP\include\argnames.h
?????文件??????11956??2010-08-06?18:44??RSAKeyGenerator\RSAKeyGenerator\CryptoPP\include\asn.h
?????文件???????2008??2010-08-06?18:44??RSAKeyGenerator\RSAKeyGenerator\CryptoPP\include\authenc.h
?????文件???????1344??2010-08-06?18:44??RSAKeyGenerator\RSAKeyGenerator\CryptoPP\include\ba
?????文件????????912??2010-08-06?18:44??RSAKeyGenerator\RSAKeyGenerator\CryptoPP\include\ba
?????文件???????2563??2010-08-06?18:44??RSAKeyGenerator\RSAKeyGenerator\CryptoPP\include\ba
?????文件????????214??2010-08-06?18:44??RSAKeyGenerator\RSAKeyGenerator\CryptoPP\include\bench.h
?????文件???????1239??2010-08-06?18:44??RSAKeyGenerator\RSAKeyGenerator\CryptoPP\include\blowfish.h
?????文件???????1302??2010-08-06?18:44??RSAKeyGenerator\RSAKeyGenerator\CryptoPP\include\blumshub.h
?????文件???????1123??2010-08-06?18:44??RSAKeyGenerator\RSAKeyGenerator\CryptoPP\include\camellia.h
?????文件???????2320??2010-08-06?18:44??RSAKeyGenerator\RSAKeyGenerator\CryptoPP\include\cast.h
?????文件???????1412??2010-08-06?18:44??RSAKeyGenerator\RSAKeyGenerator\CryptoPP\include\cbcmac.h
?????文件???????3388??2010-08-06?18:44??RSAKeyGenerator\RSAKeyGenerator\CryptoPP\include\ccm.h
?????文件???????4057??2010-08-06?18:44??RSAKeyGenerator\RSAKeyGenerator\CryptoPP\include\channels.h
?????文件???????1612??2010-08-06?18:44??RSAKeyGenerator\RSAKeyGenerator\CryptoPP\include\cmac.h
?????文件??????15604??2010-08-09?14:22??RSAKeyGenerator\RSAKeyGenerator\CryptoPP\include\config.h
?????文件???????8826??2010-08-06?18:46??RSAKeyGenerator\RSAKeyGenerator\CryptoPP\include\cpu.h
?????文件????????998??2010-08-06?18:44??RSAKeyGenerator\RSAKeyGenerator\CryptoPP\include\crc.h
............此處省略166個文件信息
評論
共有 條評論