📄 cyptdlg.h
字号:
// CyptDlg.h : header file
//
#pragma once
#include "afxwin.h"
#include "Rijndael.h"
#include "Idea.h"
// CCyptDlg dialog
class CCyptDlg : public CDialog
{
// Construction
public:
CCyptDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
enum { IDD = IDD_CYPT_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
protected:
bool IDEADeEncrypt(CString strText, bool bEn);
bool AESDeEncrypt(CString strText, bool bEn);
CRijndael m_aes;
CIdea m_idea;
int m_nSel;//0=R, 1=IDEA
int m_nSeltype;//0=固,1=变
BYTE m_aesKey[17];
short unsigned m_ideaKey[9];
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
public:
CString m_strPlain;
public:
CString m_strCipher;
public:
CComboBox m_comboAlgi;
public:
afx_msg void OnBnClickedOk();
public:
CString m_strPsw;
public:
CString m_strPlain2;
public:
afx_msg void OnBnClickedButtonDecrypt();
public:
afx_msg void OnCbnSelchangeComboAlgri();
public:
double m_dwTime2;
public:
double m_dwCycle2;
public:
double m_dwSpeed2;
public:
double m_dwTime;
public:
double m_dwCycle;
public:
double m_dwSpeed;
public:
CString m_comboValue;
public:
CComboBox m_comboTesttype;
public:
CString m_comboTesttypeValue;
public:
afx_msg void OnCbnSelchangeComboTesttype();
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -