91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 35.39 KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2024-08-03
  • 語言: 其他
  • 標簽:

資源簡介

VC編寫的DES IP置換IP逆置換

資源截圖

代碼片段和文件信息

//?IP置換及IP逆置換.cpp?:?Defines?the?class?behaviors?for?the?application.
//

#include?“stdafx.h“
#include?“IP置換及IP逆置換.h“
#include?“IP置換及IP逆置換Dlg.h“

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

/////////////////////////////////////////////////////////////////////////////
//?CIPIPApp

BEGIN_MESSAGE_MAP(CIPIPApp?CWinApp)
//{{AFX_MSG_MAP(CIPIPApp)
//?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()

/////////////////////////////////////////////////////////////////////////////
//?CIPIPApp?construction

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

/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CIPIPApp?object

CIPIPApp?theApp;

/////////////////////////////////////////////////////////////////////////////
//?CIPIPApp?initialization

BOOL?CIPIPApp::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

CIPIPDlg?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;
}

void?CIPIPApp::IP(char?ip[][8]?char?plntx[][8])
{
int?ij;
int?m=4;
int?l=1;
for(i=0;i<8;i++)
{
m=4;
l=1;
for(j=0;j<8;j++)
{
if(j%2==0)
{
ip[j+m][7-i]=plntx[i][j];
m--;
}
else
{
ip[j-l][7-i]=plntx[i][j];
l++;
}
}
}
}

void?CIPIPApp::NIP(char?nip[][8]?char?plntx[][8])
{
int?ij;
for(i=0;i<8;i++)
{
for(j=0;j<8;j++)
if(i%8<4)
nip[7-j][(i*2%8)+1]=plntx[i][j];//奇數列
else
nip[7-j][i*2%8]=plntx[i][j];//偶數列
}
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????36632??2008-04-16?16:25??IP置換及IP逆置換\IP置換及IP逆置換.APS

?????文件???????1704??2008-04-16?16:37??IP置換及IP逆置換\IP置換及IP逆置換.clw

?????文件???????2594??2008-04-08?15:49??IP置換及IP逆置換\IP置換及IP逆置換.cpp

?????文件???????4353??2008-04-07?17:08??IP置換及IP逆置換\IP置換及IP逆置換.dsp

?????文件????????557??2008-04-07?17:08??IP置換及IP逆置換\IP置換及IP逆置換.dsw

?????文件???????1427??2008-04-08?15:49??IP置換及IP逆置換\IP置換及IP逆置換.h

?????文件??????50176??2008-04-17?08:15??IP置換及IP逆置換\IP置換及IP逆置換.ncb

?????文件??????53760??2008-04-17?08:15??IP置換及IP逆置換\IP置換及IP逆置換.opt

?????文件????????266??2008-04-17?08:15??IP置換及IP逆置換\IP置換及IP逆置換.plg

?????文件???????6180??2008-04-16?16:25??IP置換及IP逆置換\IP置換及IP逆置換.rc

?????文件??????11102??2008-04-16?16:37??IP置換及IP逆置換\IP置換及IP逆置換Dlg.cpp

?????文件???????1788??2008-04-16?16:15??IP置換及IP逆置換\IP置換及IP逆置換Dlg.h

?????文件???????3723??2008-04-07?17:08??IP置換及IP逆置換\ReadMe.txt

?????文件???????1078??2008-04-07?17:08??IP置換及IP逆置換\res\IP置換及IP逆置換.ico

?????文件????????408??2008-04-07?17:08??IP置換及IP逆置換\res\IP置換及IP逆置換.rc2

?????文件???????1062??2008-04-16?15:50??IP置換及IP逆置換\resource.h

?????文件????????218??2008-04-07?17:08??IP置換及IP逆置換\StdAfx.cpp

?????文件???????1054??2008-04-07?17:08??IP置換及IP逆置換\StdAfx.h

?????文件??????65536??2008-04-14?13:24??IP置換及IP逆置換\~VC7C.tmp

?????文件??????????0??2008-04-14?13:24??IP置換及IP逆置換\~VC7D.tmp

?????目錄??????????0??2008-06-13?09:23??IP置換及IP逆置換\res

?????目錄??????????0??2008-06-13?09:50??IP置換及IP逆置換

-----------?---------??----------?-----??----

???????????????243618????????????????????22


評論

共有 條評論

相關資源