﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-半瓶醋-随笔分类-编码相关</title><link>http://www.cppblog.com/ichenq/category/11290.html</link><description>程序不过是梦，
生于无形无象的禅中，
我们只是那做梦的人。</description><language>zh-cn</language><lastBuildDate>Thu, 31 Mar 2011 07:47:52 GMT</lastBuildDate><pubDate>Thu, 31 Mar 2011 07:47:52 GMT</pubDate><ttl>60</ttl><item><title>base64实现</title><link>http://www.cppblog.com/ichenq/archive/2009/08/17/a-base64-implement.html</link><dc:creator>johnny chan</dc:creator><author>johnny chan</author><pubDate>Mon, 17 Aug 2009 13:09:00 GMT</pubDate><guid>http://www.cppblog.com/ichenq/archive/2009/08/17/a-base64-implement.html</guid><wfw:comment>http://www.cppblog.com/ichenq/comments/93646.html</wfw:comment><comments>http://www.cppblog.com/ichenq/archive/2009/08/17/a-base64-implement.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://www.cppblog.com/ichenq/comments/commentRss/93646.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/ichenq/services/trackbacks/93646.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 关于Base64编码更精确和全面的介绍请参考rfc2045。大概的转换步骤：1，首先选出64个字符，包括大小写字母(a-z,A-Z)，数字(0-9)和符号'+','/'作为一个集合(其实加上作为padding的'='该是65个字符)。2，然后，按(3*8=4*6)每3个8位字节转化为4个6位的字节(高2位补0)的形式,将输入的字节序列都转换成只包含base64集合中的字符的另一个字节序列，如下简图...&nbsp;&nbsp;<a href='http://www.cppblog.com/ichenq/archive/2009/08/17/a-base64-implement.html'>阅读全文</a><img src ="http://www.cppblog.com/ichenq/aggbug/93646.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/ichenq/" target="_blank">johnny chan</a> 2009-08-17 21:09 <a href="http://www.cppblog.com/ichenq/archive/2009/08/17/a-base64-implement.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>