📄 passdlg.h
字号:
#if !defined(AFX_PASSDLG_H__10E0E8E1_A99F_4E55_8EBE_7E79886D4AEB__INCLUDED_)
#define AFX_PASSDLG_H__10E0E8E1_A99F_4E55_8EBE_7E79886D4AEB__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// passDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// passDlg dialog
class passDlg : public CDialog
{
// Construction
public:
unsigned __int64 Eul; //the "欧拉" function's result
unsigned __int64 N; //the result of P multiply Q
unsigned __int64 Q;////one of the prime number
unsigned __int64 P;////one of the prime number
unsigned __int64 E;////a random figure
int num; ////////the length of the figure[];
unsigned __int64 figure[600];
// void Encrypt();
// void Decrypt();
unsigned __int64 Getz(unsigned __int64 z,unsigned __int64 f,unsigned __int64 N);
unsigned __int64 Eujilide(unsigned __int64 a,unsigned __int64 b); //the "欧几里得" function
unsigned __int64 Encrypt(unsigned __int64 figure,int t);//the function of encrypt
unsigned __int64 Decrypt(unsigned __int64 cipher);//the function of decrypt
CString MRSA(CString m_str); //the main function
CString CRSA();
// CString CRSA();
passDlg(CWnd* pParent = NULL); // standard constructor
CString m_out; ///a variable for output
int length;//the length of the input string
// Dialog Data
//{{AFX_DATA(passDlg)
enum { IDD = IDD_PASS };
CString m_in;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(passDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(passDlg)
virtual BOOL OnInitDialog();
virtual void OnOK();
//afx_msg void Oncancle();
afx_msg void OnCancle();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PASSDLG_H__10E0E8E1_A99F_4E55_8EBE_7E79886D4AEB__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -