⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 encryptselectfile.h

📁 COM 组建的开发
💻 H
字号:
// EncryptSelectFile.h: interface for the CEncryptSelectFile class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ENCRYPTSELECTFILE_H__DEE0C46B_02F4_47D0_B4F7_9C526D3C2DAE__INCLUDED_)
#define AFX_ENCRYPTSELECTFILE_H__DEE0C46B_02F4_47D0_B4F7_9C526D3C2DAE__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ***************************************************************
//  EncryptSelectFile   version:  1.0   ? date: 2008-05-08
//  -------------------------------------------------------------
//  该类实现对选择的文件进行加密
//  -------------------------------------------------------------
//  Copyright (C) 2008 - All Rights Reserved
// ***************************************************************
// 	Author : willing			Company : JiDiGalaxy
// ***************************************************************
class CEncryptSelectFile  
{
public:
	
	int EncFileCount(CFile &encFile,
					 CSelectFile SelectFile,
					 const DWORD dwEncType,
					 const CString strPwd,
					 const int nFileLen);// 对文件内容进行加密 [5/9/2008 By willing]
	CEncryptSelectFile();
	virtual ~CEncryptSelectFile();
	void SetDlgWnd(const HWND wnd);// 设置接收消息的窗口的句柄 [5/8/2008 By willing]
	int Encrypt(CSelectFile &SelectFile,
				const CString strPwd,
				const CString strHostCode,
				const int nEncSuanFa,
				const DWORD dwEncType);
	void SendMsg(CString strMsg,const int nTextColor);// 相进度窗口传递加密过程中的详细信息 [5/8/2008 By willing]
	int WriteEncFileHead(CFile &encFile,const CString strXML,const CString strPwd);// 写生成的文件的头文件 [5/8/2008 By willing]
protected:
	int DesEncrypt(CFile &encFile,
				   CSelectFile SelectFile,
				   const CString strPwd,
				   const int nFileLen);
	int Des3Encrypt(CFile &encFile,
					CSelectFile SelectFile,
					const CString strPwd,
					const int nFileLen);
	CString CreateEncFileHeadXml(CSelectFile SelectFile,const CString strPwd,const int nEncSuanFa,const int nEncType);
private:
	HWND hWnd;// 接收消息的窗口句柄 [5/8/2008 By willing]	
};

#endif // !defined(AFX_ENCRYPTSELECTFILE_H__DEE0C46B_02F4_47D0_B4F7_9C526D3C2DAE__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -