資源簡介
VC++ 實現(xiàn)Diffie-Hellman密鑰交換算法

代碼片段和文件信息
//?Diffie_Hellman.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Diffie_Hellman.h“
#include?“Diffie_HellmanDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CDiffie_HellmanApp
BEGIN_MESSAGE_MAP(CDiffie_HellmanApp?CWinApp)
//{{AFX_MSG_MAP(CDiffie_HellmanApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CDiffie_HellmanApp?construction
CDiffie_HellmanApp::CDiffie_HellmanApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CDiffie_HellmanApp?object
CDiffie_HellmanApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CDiffie_HellmanApp?initialization
BOOL?CDiffie_HellmanApp::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
CDiffie_HellmanDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????22324??2010-04-14?15:35??Diffie_Hellman\Diffie_Hellman.aps
?????文件???????2136??2010-04-14?15:36??Diffie_Hellman\Diffie_Hellman.clw
?????文件???????2175??2008-09-17?21:33??Diffie_Hellman\Diffie_Hellman.cpp
?????文件???????4303??2008-09-17?21:33??Diffie_Hellman\Diffie_Hellman.dsp
?????文件????????553??2008-09-17?21:33??Diffie_Hellman\Diffie_Hellman.dsw
?????文件???????1412??2008-09-17?21:33??Diffie_Hellman\Diffie_Hellman.h
?????文件??????82944??2010-04-14?15:36??Diffie_Hellman\Diffie_Hellman.ncb
?????文件????????262??2010-04-14?15:35??Diffie_Hellman\Diffie_Hellman.plg
?????文件???????6644??2008-09-17?21:50??Diffie_Hellman\Diffie_Hellman.rc
?????文件???????6558??2008-09-21?10:11??Diffie_Hellman\Diffie_HellmanDlg.cpp
?????文件???????1729??2008-09-19?18:09??Diffie_Hellman\Diffie_HellmanDlg.h
?????文件???????3723??2008-09-17?21:33??Diffie_Hellman\ReadMe.txt
?????文件???????1290??2008-09-17?21:50??Diffie_Hellman\Resource.h
?????文件????????216??2008-09-17?21:33??Diffie_Hellman\StdAfx.cpp
?????文件???????1054??2008-09-17?21:33??Diffie_Hellman\StdAfx.h
?????文件?????110677??2008-09-21?10:11??Diffie_Hellman\Debug\Diffie_Hellman.exe
?????文件?????189472??2008-09-21?10:11??Diffie_Hellman\Debug\Diffie_Hellman.ilk
?????文件??????13794??2008-09-19?12:05??Diffie_Hellman\Debug\Diffie_Hellman.obj
?????文件????5497160??2008-09-19?12:05??Diffie_Hellman\Debug\Diffie_Hellman.pch
?????文件?????353280??2008-09-21?10:11??Diffie_Hellman\Debug\Diffie_Hellman.pdb
?????文件???????3448??2008-09-19?12:05??Diffie_Hellman\Debug\Diffie_Hellman.res
?????文件??????29036??2008-09-21?10:11??Diffie_Hellman\Debug\Diffie_HellmanDlg.obj
?????文件?????106062??2008-09-19?12:05??Diffie_Hellman\Debug\StdAfx.obj
?????文件?????214016??2010-04-14?15:35??Diffie_Hellman\Debug\vc60.idb
?????文件?????364544??2008-09-21?10:11??Diffie_Hellman\Debug\vc60.pdb
?????文件???????1078??2008-09-17?21:33??Diffie_Hellman\res\Diffie_Hellman.ico
?????文件????????406??2008-09-17?21:33??Diffie_Hellman\res\Diffie_Hellman.rc2
?????文件??????50688??2010-04-14?15:36??Diffie_Hellman\Diffie_Hellman.opt
?????目錄??????????0??2009-07-21?14:27??Diffie_Hellman\Debug
?????目錄??????????0??2009-07-21?14:27??Diffie_Hellman\res
............此處省略4個文件信息
評論
共有 條評論