📄 encrypt.h
字号:
// ***************************************************************
// ComService version: 1.0
// -------------------------------------------------------------
// File Name: Encrypt.h
// Created: 2007/07/23
// Modified: 2007/07/23 15:12
// Author:
// Msn:
// Email:
// Description:提供了MD5加密方式及一组异或加/解函数,框架内的所
// 加/密均基于以上两种方法。
//
// Purpose:
// -------------------------------------------------------------
// license:
//
// The contents of this file are subject to the Mozilla Public
// License Version 1.1 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy
// of the License at http://www.mozilla.org/MPL/ Software dis-
// tributed under the License is distributed on an "AS IS"
// basis, WITHOUT WARRANTY OF ANY KIND, either express or im-
// plied. See the License for the specific language governing
// rights and limitations under the License.
//
// The Initial Developer of the Original Code is William.Liang .
// Copyright (C) 2007 - All Rights Reserved.
// ***************************************************************
#ifndef ENCRYPT_HEAD_FILE
#define ENCRYPT_HEAD_FILE
#include "ComService.h"
//////////////////////////////////////////////////////////////////////////
//MD5 加密类
class COM_SERVICE_CLASS CMD5Encrypt
{
//函数定义
private:
//构造函数
CMD5Encrypt() {}
//功能函数
public:
//生成密文
static void EncryptData(LPCTSTR pszSrcData, TCHAR szMD5Result[33]);
};
//////////////////////////////////////////////////////////////////////////
//异或加密类
class COM_SERVICE_CLASS CXOREncrypt
{
//函数定义
private:
//构造函数
CXOREncrypt() {}
//功能函数
public:
//生成密文
static WORD EncryptData(LPCTSTR pszSrcData, LPTSTR pszEncrypData, WORD wSize);
//解开密文
static WORD CrevasseData(LPCTSTR pszEncrypData, LPTSTR pszSrcData, WORD wSize);
};
//////////////////////////////////////////////////////////////////////////
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -