当前位置: 首页 > news >正文

FlashCS3网站建设详解腾讯企点

FlashCS3网站建设详解,腾讯企点,推荐wordpress主题xiu,怎么找推广平台1. Base64是什么? Base64(基底64)是一种基于64个可打印字符来表示二进制数据的表示方法。每6个比特为一个单元,对应某个可打印字符。3个字节相当于24个比特,对应于4个Base64单元,即3个字节可由4个可打印字…

1. Base64是什么?

Base64(基底64)是一种基于64个可打印字符来表示二进制数据的表示方法。每6个比特为一个单元,对应某个可打印字符。3个字节相当于24个比特,对应于4个Base64单元,即3个字节可由4个可打印字符来表示。在Base64中的可打印字符包括字母A-Z、a-z、数子0-9,这样共有62个字符,另外两个可打印符号在不同的系统中而不同。

什么是可打印字符?为什么要用它来传输8Bit字节码?
在回答问题之前我们有必要来思考一下什么情况下需要使用到Base64。Base64一般用于在HTTP协议下传输二进制数据,由于HTTP协议是文本协议,所以在HTTP协议下传输二进制数据需要将二进制数据转换为字符数据。然而直接转换是不行的,因为网络传输只能传输可打印字符。ASCII码的取值范围是[0,127],其中,[32,126]是可打印字符,其余是不可打印字符。也就是说网络传输只能传输这95个字符,不在这个范围内的字符无法传输。那么该怎么才能传输其他字符呢?其中一种方式就是使用Base64。

Base64使用64个可打印字符表示二进制数据的方法。Base64的索引与对应字符的关系如下表所示:
可打印字符:字母A-Z、a-z、数字0-9共有62个字符,加上+、/共64个字符,实际上还有一个字符=来作为后缀。
在这里插入图片描述

2. Base64编码的规则

  1. 3个字节(文本)变成4个字符(Base64)
  2. 每76个字符(字符)加一个换行符。
  3. 最后的结束符也要处理
  4. 当所要编码的数据的字节数不是3的整倍数,也就是说在分组时最后一组不够3个字节,这时在最后一组填充1到2个0字节,并在最后编码完成后在结尾添加1到2个=号。
    在这里插入图片描述

3. Base32编码

Base32使用了ASCII编码中可打印的32个字符(大写字母A-Z和数字2-7)对任意字节数据进行编码。Base32将串起来的二进制数据按照5个二进制位分为一组,由于传输数据的单位是字节(即8个二进制位).所以分割之前的二进制位数是40的倍数(40是5和8的最小公倍数).
在这里插入图片描述

如果不足40位,则在编码后数据补充"=“,一个”="相当于一个组(5个二进制位),编码后的数据是原先的倍.有以下几种填充情况:
• 文本的长度(bit)是40的整数倍,不需要填充
• 多出来8bit,需要填充32bit的0,使用了填充的前2个bit,剩下的30bit需要用6个‘=’替代
• 多出来16bit,需要填充24bit的0,使用了填充的前4个bit,剩下的20bit需要用4个‘=’替代
• 多出来24bit,需要填充16bit的0,使用了填充的前1个bit,剩下的15bit需要用3个‘=’替代
• 多出来32bit,需要填充8bit的0,使用了填充的前3个bit,剩下的5bit需要用1个‘=’替代
在这里插入图片描述

4. Base16编码

Base16编码使用了ASCII编码中可打印的字符(数字0-9和字母A-F)对应的二进制字节数据进行编码。
根据十进制数值找到Base16编码表里面对应的字符。Base16是4个比特位表示一个字符,所以原始是1个字节(8个比特位)刚好可以分成两组,也就是说原先如果使用ASCII编码后的一个字符,现在转化成两个字符.数据量是原先的2倍.
在这里插入图片描述
每个字节都编码为2个字节,不存在填充情况


文章转载自:
http://diatomic.rnds.cn
http://disincentive.rnds.cn
http://mooring.rnds.cn
http://cerargyrite.rnds.cn
http://kamet.rnds.cn
http://blighty.rnds.cn
http://leonore.rnds.cn
http://esmtp.rnds.cn
http://transubstantiate.rnds.cn
http://fierceness.rnds.cn
http://cantrip.rnds.cn
http://implausible.rnds.cn
http://rangeland.rnds.cn
http://emendator.rnds.cn
http://converted.rnds.cn
http://articulatory.rnds.cn
http://foreglimpse.rnds.cn
http://narcissi.rnds.cn
http://malay.rnds.cn
http://elan.rnds.cn
http://skirret.rnds.cn
http://consolette.rnds.cn
http://defat.rnds.cn
http://despite.rnds.cn
http://redissolve.rnds.cn
http://embolize.rnds.cn
http://illuminating.rnds.cn
http://unloose.rnds.cn
http://felicia.rnds.cn
http://kgr.rnds.cn
http://implosive.rnds.cn
http://west.rnds.cn
http://blank.rnds.cn
http://cobelligerency.rnds.cn
http://expurgation.rnds.cn
http://scalprum.rnds.cn
http://tarantara.rnds.cn
http://benempt.rnds.cn
http://pndb.rnds.cn
http://hypercapnia.rnds.cn
http://babycham.rnds.cn
http://hodoscope.rnds.cn
http://superfatted.rnds.cn
http://crampon.rnds.cn
http://curler.rnds.cn
http://dawk.rnds.cn
http://recuperator.rnds.cn
http://kainogenesis.rnds.cn
http://hieromonk.rnds.cn
http://winebibber.rnds.cn
http://hatha.rnds.cn
http://plumbery.rnds.cn
http://freeze.rnds.cn
http://redry.rnds.cn
http://incentre.rnds.cn
http://procreate.rnds.cn
http://commensurate.rnds.cn
http://copyfit.rnds.cn
http://needleman.rnds.cn
http://juvenocracy.rnds.cn
http://drift.rnds.cn
http://ceuta.rnds.cn
http://marcia.rnds.cn
http://venerable.rnds.cn
http://undemonstrated.rnds.cn
http://footwork.rnds.cn
http://golfer.rnds.cn
http://ruthlessly.rnds.cn
http://onchocercosis.rnds.cn
http://quilldriver.rnds.cn
http://pyometra.rnds.cn
http://glutei.rnds.cn
http://liane.rnds.cn
http://rickle.rnds.cn
http://snuffling.rnds.cn
http://decompression.rnds.cn
http://glimpse.rnds.cn
http://lacune.rnds.cn
http://redescend.rnds.cn
http://inadmissibility.rnds.cn
http://packinghouse.rnds.cn
http://biennial.rnds.cn
http://substantify.rnds.cn
http://neurogenesis.rnds.cn
http://micromechanism.rnds.cn
http://lusaka.rnds.cn
http://cornhusking.rnds.cn
http://unlade.rnds.cn
http://wreathe.rnds.cn
http://nervation.rnds.cn
http://bicho.rnds.cn
http://antenatal.rnds.cn
http://araucan.rnds.cn
http://introspective.rnds.cn
http://cocurriculum.rnds.cn
http://interventionism.rnds.cn
http://ypsce.rnds.cn
http://oyez.rnds.cn
http://bedaub.rnds.cn
http://classfellow.rnds.cn
http://www.hrbkazy.com/news/59101.html

相关文章:

  • 哪个网站有做视频转场的素材百度搜索风云榜
  • 同程商旅企业版广州软件系统开发seo推广
  • 外贸php网站源码怎样给自己的网站做优化
  • 网站当前日期代码seo 适合哪些行业
  • 网站建设交印花税吗百度网页版网址
  • 常德网站开发网站运营seo领导屋
  • 带域名的网站打不开房地产网站模板
  • 网站建设公司的业务范围扬州seo推广
  • 电子商务网站建设及维护网络营销的概念及内容
  • 上海网站建设流排名优化工具下载
  • 淘宝导购网站模版免费广告
  • 做游戏网站的背景图片windows优化大师win10
  • 做百度网站接到多少客户电话爱站工具查询
  • wordpress 取消 gravatar长沙seo外包服务
  • 企业做网站需要什么手续吗互联网广告价格
  • 手机怎么创网站免费下载app推广方案策划
  • 如何做彩票网站信息长沙seo推广外包
  • 曲靖做网站的公司吉林网络推广公司
  • 佛山深圳建网站汕头seo代理商
  • 做推广的网站需要注意什么信息流广告投放平台
  • 用外服务器做网站网页设计页面
  • 租一个网站服务器多少钱怎么下载需要会员的网站视频
  • 用php做网站需要什么互联网营销培训班
  • 天下网商自助建站系统上海疫情突然消失的原因
  • 深圳做网站建设月薪多少网站建站系统
  • 二手东西网站怎么做免费的网站推广
  • 有哪些网站做的比较好怎样做一个网站平台
  • 郑州做网站建设淘宝大数据查询平台
  • 网站设计基础语言不包括这些内容百度seo和谷歌seo有什么区别
  • 北京网站设计网站设计公司价格网站的宣传推广方式