摘要:
#ifndef _ZBASE64#define _ZBASE64#pragma warning(disable:4786) #include <string>using namespace std;class ZBase64{private://Base64编码解码表char* m_Base64_Table;public://构造ZBase64();//编码string EncodeBase64(const string strSource);//解码string DecodeBase64(const string strSource);};#endif#include " 阅读全文
摘要:
#include <iostream>#include "../src/utility/md5.h"void main(){ SHA1 sha1; char buffer[41]; sha1.SHA_GO("a",buffer); printf("%s",buffer); //sha1调用//=================================================== //MD5调用 std::string str = "abc"; MD5 md5(str); std::str 阅读全文
摘要:
#include "http://www.cnblogs.com/src/network/http.h"void WinHttpWorker::HttpCreateSession(LPCWSTR agent){ _hSession=WinHttpOpen(agent,WINHTTP_ACCESS_TYPE_DEFAULT_PROXY,WINHTTP_NO_PROXY_NAME,WINHTTP_NO_PROXY_BYPASS,0); if(_hSession) { printf("%s", "_hSession\n"); }}void 阅读全文