?? vcrypt.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 + -