• 大小: 65.7M
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2022-12-19
  • 语言: 其他
  • 标签: 其他  

资源简介

WechatSdkDemo.rar

资源截图

代码片段和文件信息

#include “base64.h“
#include 


//base64为解码
std::string decode_base64(const std::string base64 bool base64url = false)
{
unsigned int buf = 0;
int nbits = 0;
std::string tmp;
tmp.resize((base64.size() * 3) / 4);


int offset = 0;
for (int i = 0; i < base64.size(); ++i) {
int ch = base64.at(i);
int d;

if (ch >= ‘A‘ && ch <= ‘Z‘)
d = ch - ‘A‘;
else if (ch >= ‘a‘ && ch <= ‘z‘)
d = ch - ‘a‘ + 26;
else if (ch >= ‘0‘ && ch <= ‘9‘)
d = ch - ‘0‘ + 52;
else if (ch == ‘+‘ && (base64url) == 0)
d = 62;
else if (ch == ‘-‘ && (base64url) != 0)
d = 62;
else if (ch == ‘/‘ && (base64url) == 0)
d = 63;
else if (ch == ‘_‘ && (base64url) != 0)
d = 63;
else
d = -1;

if (d != -1) {
buf = (buf << 6) | d;
nbits += 6;
if (nbits >= 8) {
nbits -= 8;
tmp[offset++] = buf >> nbits;
buf &= (1 << nbits) - 1;
}
}
}

//tmp.truncate(offset);
if (offset < tmp.size())
tmp.resize(offset);

return tmp;
}



 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.    103424  2019-08-06 17:21  FinanceSdkDemo\.vs\FinanceSdkDemo\v15\.suo

     文件   50184192  2019-08-06 17:21  FinanceSdkDemo\.vs\FinanceSdkDemo\v15\Browse.VC.db

     文件   40173568  2019-07-30 11:17  FinanceSdkDemo\.vs\FinanceSdkDemo\v15\ipch\AutoPCH\1780a0f3f91eca58\JSON_VALUE.ipch

     文件   29949952  2019-08-06 16:56  FinanceSdkDemo\.vs\FinanceSdkDemo\v15\ipch\AutoPCH\19db4ae07013c8bf\MAIN.ipch

     文件     327680  2019-07-29 17:46  FinanceSdkDemo\.vs\FinanceSdkDemo\v15\ipch\AutoPCH\38551825a4d4afff\MAIN.ipch

     文件   30212096  2019-07-30 15:00  FinanceSdkDemo\.vs\FinanceSdkDemo\v15\ipch\AutoPCH\42134937117b6000\base64.ipch

     文件   30539776  2019-08-06 11:16  FinanceSdkDemo\.vs\FinanceSdkDemo\v15\ipch\AutoPCH\4ebd9f7ee1e7420b\MAIN1.ipch

     文件   30670848  2019-07-30 13:38  FinanceSdkDemo\.vs\FinanceSdkDemo\v15\ipch\AutoPCH\5b2dd92e5a5f7b0d\JSON_VALUE.ipch

     文件     327680  2019-07-29 19:49  FinanceSdkDemo\.vs\FinanceSdkDemo\v15\ipch\AutoPCH\848234aeec07412f\MAIN.ipch

     文件   43646976  2019-07-30 13:37  FinanceSdkDemo\.vs\FinanceSdkDemo\v15\ipch\AutoPCH\a72e3a3ccf5b3d04\JSON_WRITER.ipch

     文件   30212096  2019-07-30 20:36  FinanceSdkDemo\.vs\FinanceSdkDemo\v15\ipch\AutoPCH\ebd7e67271988613\base64.ipch

     文件   30212096  2019-08-06 10:27  FinanceSdkDemo\.vs\FinanceSdkDemo\v15\ipch\AutoPCH\f075e66b31d41e8b\base64.ipch

     文件   30212096  2019-07-31 09:39  FinanceSdkDemo\.vs\FinanceSdkDemo\v15\ipch\AutoPCH\ff75015a173bfcb7\MAIN.ipch

     文件     191111  2019-08-06 16:32  FinanceSdkDemo\FinanceSdkDemo\102

     文件        438  2010-03-12 15:31  FinanceSdkDemo\FinanceSdkDemo\autolink.h

     文件        980  2019-07-30 18:53  FinanceSdkDemo\FinanceSdkDemo\base64.cpp

     文件        334  2019-07-30 20:33  FinanceSdkDemo\FinanceSdkDemo\base64.h

     文件       1536  2010-03-12 15:31  FinanceSdkDemo\FinanceSdkDemo\config.h

     文件          5  2019-08-06 16:42  FinanceSdkDemo\FinanceSdkDemo\data.txt

     文件       1290  2010-03-12 15:31  FinanceSdkDemo\FinanceSdkDemo\features.h

     文件      10095  2019-07-31 14:19  FinanceSdkDemo\FinanceSdkDemo\FinanceSdkDemo.vcxproj

     文件       9922  2019-07-31 14:19  FinanceSdkDemo\FinanceSdkDemo\FinanceSdkDemo.vcxproj.filters

     文件        165  2019-07-26 13:45  FinanceSdkDemo\FinanceSdkDemo\FinanceSdkDemo.vcxproj.user

     文件        735  2010-03-12 15:31  FinanceSdkDemo\FinanceSdkDemo\forwards.h

     文件        200  2010-03-12 15:31  FinanceSdkDemo\FinanceSdkDemo\json.h

     文件       3929  2017-03-22 17:02  FinanceSdkDemo\FinanceSdkDemo\json_batchallocator.h

     文件    3778224  2019-07-30 13:32  FinanceSdkDemo\FinanceSdkDemo\json_vc71_libmtd.lib

     文件     340992  2019-07-04 20:14  FinanceSdkDemo\FinanceSdkDemo\libcurl.dll

     文件    2081792  2019-07-04 17:06  FinanceSdkDemo\FinanceSdkDemo\libeay32.dll

     文件   13599590  2018-06-28 14:05  FinanceSdkDemo\FinanceSdkDemo\libeay32.lib

............此处省略143个文件信息

评论

共有 条评论