摘要: #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 " 阅读全文
posted @ 2012-05-07 12:25 大约 阅读(1017) 评论(0) 推荐(0) 编辑
摘要: #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 阅读全文
posted @ 2012-05-07 11:44 大约 阅读(5421) 评论(1) 推荐(0) 编辑
摘要: #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 阅读全文
posted @ 2012-05-07 10:04 大约 阅读(1054) 评论(0) 推荐(0) 编辑