?? secretkeyedit.h
字號:
#if !defined(AFX_SECRETKEYEDIT_H__B7CE85F6_B33D_405D_9CF7_6984C61770E9__INCLUDED_)
#define AFX_SECRETKEYEDIT_H__B7CE85F6_B33D_405D_9CF7_6984C61770E9__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SecretKeyEdit.h : header file
//
#include "RSA.h"
#include "ColorEdit.h"
/////////////////////////////////////////////////////////////////////////////
// CSecretKeyEdit dialog
#define SECRETKEY_ID 632135278 //密鑰文件表示符合
#define SECRETKEY_VERSION 1 //版本號
#define SECRETKEY_PRIVATE 1 //是私鑰文件
#define SECRETKEY_PUBLIC 2 //是公鑰文件
struct SecretKey //私鑰或公鑰文件結構
{
SK sk; //私鑰
PK pk; //公鑰
char userName[32]; //用戶名,文件名和它相同
char qq[32]; //qq號碼
char email[32]; //email地址
char standby[64]; //留給升級版本用
int version; //版本號
int privateOrPublic; //這個文件是私鑰為1還是公鑰為2
int ID; //文件標識符(632135278)
};
//m_select選擇密鑰編輯的用途
#define SELECT_CREATE 0
#define SELECT_PRIVATE 1
#define SELECT_PUBLIC 2
class CSecretKeyEdit : public CDialog
{
// Construction
public:
CString m_user_private_key_file_name; //密鑰的文件全路徑
BOOL m_bCreate; //是否在創建密鑰中
BOOL CreatePublicKey(CString fileName);
CString m_fileName; //密鑰文件名
CString CharToCString(char * ch,int n);
void CStringToChar(char * ch,CString str,int n);
int validateSecretKey(CString fileName);
CString CharToHexToString(char m);
int m_select; //密鑰編輯(用戶私鑰編輯或好友公鑰編輯或生成密鑰)
//0為生成密鑰,1為打開私鑰,2為打開公鑰
SecretKey m_secretKey; //密鑰結構
CSecretKeyEdit(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CSecretKeyEdit)
enum { IDD = IDD_SECRETKEYEDIT };
CString m_email;
CString m_qq;
CString m_userName;
CString m_secretKeyEdit;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSecretKeyEdit)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CSecretKeyEdit)
virtual void OnOK();
virtual void OnCancel();
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SECRETKEYEDIT_H__B7CE85F6_B33D_405D_9CF7_6984C61770E9__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -