資源簡介
實現一重DES的五種加密模式,即ECB、CBC、CFB、OFB、CTR等。
友好的MFC界面,添加注釋,可方便地擴展為三重DES加密。程序退出時會有警告出現,它對于文件的加密與解密沒有絲毫影響。
該文件已刪除Debug目錄。

代碼片段和文件信息
//?DesExper.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“DesExper.h“
#include?“DesExperDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CDesExperApp
BEGIN_MESSAGE_MAP(CDesExperApp?CWinApp)
//{{AFX_MSG_MAP(CDesExperApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CDesExperApp?construction
CDesExperApp::CDesExperApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CDesExperApp?object
CDesExperApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CDesExperApp?initialization
BOOL?CDesExperApp::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
CDesExperDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????40356??2009-05-23?01:31??簡易DES加密器\DesExper\DesExper.aps
?????文件???????2024??2009-05-23?01:32??簡易DES加密器\DesExper\DesExper.clw
?????文件???????2093??2009-05-22?23:10??簡易DES加密器\DesExper\DesExper.cpp
?????文件???????4127??2009-05-22?23:15??簡易DES加密器\DesExper\DesExper.dsp
?????文件????????539??2009-05-22?08:56??簡易DES加密器\DesExper\DesExper.dsw
?????文件?????127065??2009-05-23?01:31??簡易DES加密器\DesExper\DesExper.exe
?????文件???????1346??2009-05-22?08:56??簡易DES加密器\DesExper\DesExper.h
?????文件?????107520??2009-05-23?01:32??簡易DES加密器\DesExper\DesExper.ncb
?????文件??????55808??2009-05-23?01:32??簡易DES加密器\DesExper\DesExper.opt
?????文件????????250??2009-05-23?01:32??簡易DES加密器\DesExper\DesExper.plg
?????文件???????7140??2009-05-23?01:31??簡易DES加密器\DesExper\DesExper.rc
?????文件??????25836??2009-05-23?01:17??簡易DES加密器\DesExper\DesExperDlg.cpp
?????文件???????1697??2009-05-23?00:11??簡易DES加密器\DesExper\DesExperDlg.h
?????文件???????3615??2009-05-22?08:56??簡易DES加密器\DesExper\ReadMe.txt
?????文件???????3638??2009-05-22?21:18??簡易DES加密器\DesExper\res\DesExper.ico
?????文件???????1329??2009-05-22?23:35??簡易DES加密器\DesExper\resource.h
?????文件????????210??2009-05-22?08:56??簡易DES加密器\DesExper\StdAfx.cpp
?????文件???????1054??2009-05-22?08:56??簡易DES加密器\DesExper\StdAfx.h
?????目錄??????????0??2009-05-23?01:31??簡易DES加密器\DesExper\res
?????目錄??????????0??2009-05-23?01:32??簡易DES加密器\DesExper
?????目錄??????????0??2009-05-23?01:34??簡易DES加密器
-----------?---------??----------?-----??----
???????????????385647????????????????????21
評論
共有 條評論