computer_knowledge_notes/Software/文本转换/base64.md

23 lines
486 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#### 简介
编码或解码数据,并输出到标准输出。
数据按照RFC4648中的base64字母表进行编码。解码时除了base64字母表中的字节外输入中还可能包含新行此时可以用`-i`选项来从编码流中的非base64字母表中的字母恢复。
#### 语法
```
base64 [options] [fle]
```
#### 选项
```
-d, --decode # 解码
-i, --ignore-garbage # 解码时忽略非base64字母表中的字符。
-w, --wrap=COLS
--help
--version
```