知识卡片
Base64把三字节映成四符号
对完整的24位输入组,Base64把三个8位字节重排为四个6位索引,再用相应字母表符号表示。因此这里四个输出符号仍表达原来的24位信息,并没有增加保密性。原书借RFC2045片段讨论注释是否太长;其中机制仍可独立理解,但尾组和填充等规则未在该段完整展开,不能把它当完整编解码器规范。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · 第4章 注释
原书出处 · 1 处
- 第4章 注释 4.4.13 HTML注释 · 查看原书依据
The encoding process represents 24-bit groups of input bits as output strings of 4 encoded characters.
参考来源
- 位置:《代码整洁之道》全书 · 第4章 注释,spine013单元009;来源项目book-sources,extracted/代码整洁之道/_epub-src/OEBPS/Text/part0011.xhtml。
- 结论依据:原文RFC摘录明确24→4×6位并按高位先分组,支持完整组表示机制;保留该实质知识,不因它在坏注释例中就认定内容无知识价值。未在本机运行示例或改变环境。
- 原始内容:t-Transfer-Encoding The encoding process represents 24-bit groups of input bits as output strings of 4 encoded characters. Proceeding from left to right, a 24-bit input group is formed by concatenating 3 8-b