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

📄 vcrypt.h

📁 otl简单包装实现类,对数据库进行操作的,简单易用.
💻 H
字号:
/***************************************************************************                          vcrypt.h  -  description                             -------------------    begin                : ?  9? 6 2005    copyright            : (C) 2005 by root    email                : root@zl.foundermn.com ***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * ***************************************************************************/#ifndef VCRYPT_H#define VCRYPT_H#include "linuxh.h"/**  *@author root  */class VCrypt{public:    static unsigned char* Md5(const unsigned char* Key,unsigned long KeyLen,unsigned char* KeyResult);	static bool Password(const char* Key,int KeyLen,char* KeyResult);	static string Password(string Key);	static string ExchangeCode(string Key);	static string Md5String(string Key);	static string Md5File(string File);	static string Md5QuickFile(string File);};class VHostInfo{public:	static string GetMacAddress(const char *Eth);	static string GetHDSerialNo(const char *DevHD);	static string GenerateCode(const char* Dev=NULL);	static string GenerateSerialNo(const char* HostCode);};class Base64{private:	static char GetB64Char(int index);	static int	GetB64Index(char ch); public:	static int Base64Encode(char * base64code, const char * src, int src_len = 0); 
	static int Base64Decode(char * buf, const char * base64code, int src_len = 0);
	static string Base64Encode(string src);	static string Base64Decode(string base64code);};#endif

⌨️ 快捷键说明

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