📄 desencrptiondlg.h
字号:
// DESEncrptionDlg.h : header file
//
#if !defined(AFX_DESENCRPTIONDLG_H__470D8C43_6949_4C8A_80C8_37CC28B34593__INCLUDED_)
#define AFX_DESENCRPTIONDLG_H__470D8C43_6949_4C8A_80C8_37CC28B34593__INCLUDED_
#include "odeFrame.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CDESEncrptionDlg dialog
class CDESEncrptionDlg : public CDialog
{
// Construction
public:
bool Analysis(CString strDecimal,bool b[],int l);
CString BS(bool b[],int length);
int rest;
CString Decrp(CString source);
CString Encrp(CString source);
void ComputeKey();
CString zResult;
CString getResult(bool b1[],bool b2[],bool b3[]);
CodeFrame codeFrame;
//CodeFrame codeFrame;
void ShowText();
CString BtoS(bool b[],int length);
int DESRound;
CString BinaryToDecimal(CString strBinary,int length);
void sixTofour(bool s[],bool d[]);
void xor48(bool s1[48],bool s2[48],bool d[48],int length);
void Transfer(int array[],bool b[],bool b1[],int d);
void DecimalToBinary(CString strDecimal,bool b[],int l);
void LeftMove(bool b[],int l);
void getC0D0(int array[],unsigned char source[8],unsigned char result[8],int N);
void getL0R0(unsigned char c[8]);
void Tran64(int array[64],unsigned char s[8],unsigned char r[8],int d);
int aaa[64];
CDESEncrptionDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CDESEncrptionDlg)
enum { IDD = IDD_DESENCRPTION_DIALOG };
CButton m_lfxorbutton;
CButton m_pbutton;
CButton m_sbutton;
CButton m_xorbutton;
CButton m_erbutton;
CButton m_pc2button;
CButton m_leftbutton;
CButton m_ipbutton;
CEdit Ksign;
CEdit ROsign;
CEdit RNsign;
CEdit LOsign;
CEdit LNsign;
CEdit Dsign;
CEdit Csign;
CButton m_nextRound;
CString m_InputVar;
CString m_Lnew;
CString m_Rnew;
CString m_S;
CString m_D;
CString m_C;
CString m_ER;
CString m_F;
CString m_K;
CString m_Lold;
CString m_Rold;
CString m_Round;
CString m_XOR;
CString m_OutputVar;
CString m_ResultEdit;
CString m_finalResult;
CString m_edit1;
CString m_edit2;
CString m_edit3;
CString m_speed;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDESEncrptionDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CDESEncrptionDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnChangeInputEdit();
afx_msg void OnChangeOutputEdit();
afx_msg void OnTransferButton();
//afx_msg void OnButton2();
afx_msg void OnChangeKeyEdit();
afx_msg void OnIPButton();
afx_msg void OnLeftButton();
afx_msg void OnPC2Button();
afx_msg void OnERButton();
afx_msg void OnXORButton();
afx_msg void OnSButton();
afx_msg void OnPButton();
afx_msg void OnLFXORButton();
afx_msg void OnnextRound();
afx_msg void OnLookForCode();
afx_msg void OnDecrptionButton();
afx_msg void OnEncrptionButton();
afx_msg void OnButton1();
afx_msg void OnButton2();
afx_msg void OnButton3();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DESENCRPTIONDLG_H__470D8C43_6949_4C8A_80C8_37CC28B34593__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -