2进制与base64编码转换C代码

上传者: missgirl | 上传时间: 2021-06-15 12:04:43 | 文件大小: 1.82MB | 文件类型: RAR
需要一个二进制与BASE64相互转换的函数,从网上找了几个,或者是错的,或者不输出长度,待转的二进制串中有可能出现00截断,因此不能直接以strlen来计算长度,所以我引用网上的一个可用代码后加以修改,变成现在的接口形式。示例中提供二进制与16进制字符串转换函数ConvertHexStrToBin与ConvertBinToHexStr,二进制与BASE64编码转换函数Base64Encode与Base64Decode,在VC6下编译通过可用。

文件下载

资源详情

[{"title":"( 28 个子文件 1.82MB ) 2进制与base64编码转换C代码","children":[{"title":"TestCoding","children":[{"title":"ReadMe.txt <span style='color:#111;'> 3.57KB </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"TestCoding.dsp <span style='color:#111;'> 4.13KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"TestCoding.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"TestCoding.rc2 <span style='color:#111;'> 402B </span>","children":null,"spread":false}],"spread":true},{"title":"TestCodingDlg.h <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false},{"title":"TestCoding.aps <span style='color:#111;'> 33.94KB </span>","children":null,"spread":false},{"title":"TestCoding.clw <span style='color:#111;'> 784B </span>","children":null,"spread":false},{"title":"TestCoding.opt <span style='color:#111;'> 48.50KB </span>","children":null,"spread":false},{"title":"TestCoding.h <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"vc60.pdb <span style='color:#111;'> 364.00KB </span>","children":null,"spread":false},{"title":"TestCoding.pch <span style='color:#111;'> 5.38MB </span>","children":null,"spread":false},{"title":"TestCodingDlg.obj <span style='color:#111;'> 34.65KB </span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'> 209.00KB </span>","children":null,"spread":false},{"title":"TestCoding.ilk <span style='color:#111;'> 225.33KB </span>","children":null,"spread":false},{"title":"TestCoding.obj <span style='color:#111;'> 13.53KB </span>","children":null,"spread":false},{"title":"StdAfx.obj <span style='color:#111;'> 103.09KB </span>","children":null,"spread":false},{"title":"TestCoding.pdb <span style='color:#111;'> 377.00KB </span>","children":null,"spread":false},{"title":"TestCoding.res <span style='color:#111;'> 2.14KB </span>","children":null,"spread":false},{"title":"TestCoding.exe <span style='color:#111;'> 108.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"TestCoding.plg <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"TestCoding.dsw <span style='color:#111;'> 543B </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 596B </span>","children":null,"spread":false},{"title":"TestCoding.cpp <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false},{"title":"TestCoding.ncb <span style='color:#111;'> 41.00KB </span>","children":null,"spread":false},{"title":"TestCodingDlg.cpp <span style='color:#111;'> 8.30KB </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 212B </span>","children":null,"spread":false},{"title":"TestCoding.rc <span style='color:#111;'> 4.51KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • z545284447 :
    还不错,谢谢分享了,可用
    2020-06-05
  • wuxinhope111 :
    挺好用的 ,说明很详细,对新手很有帮助,
    2019-06-11
  • qiujixiangshui :
    不错很实用,有帮助
    2019-05-10
  • renruochujian3932 :
    没试过,好像是C++的
    2018-08-27
  • jyx0928 :
    很实用,伸手党的福音
    2017-07-07

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明