2020-11-04 20:12:56 +00:00
|
|
|
# base64
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
> 将文件或标准输入编码到 Base64 或从 Base64 解码为标准输出。
|
2021-08-31 08:13:49 +01:00
|
|
|
> 更多信息:<https://www.gnu.org/software/coreutils/base64>.
|
2020-11-04 20:12:56 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 编码一个文件:
|
2020-11-04 20:12:56 +00:00
|
|
|
|
|
|
|
`base64 {{文件名}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 解码一个文件:
|
2020-11-04 20:12:56 +00:00
|
|
|
|
2021-03-07 22:58:11 +00:00
|
|
|
`base64 --decode {{文件名}}`
|
2020-11-04 20:12:56 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 从标准输入编码:
|
2020-11-04 20:12:56 +00:00
|
|
|
|
|
|
|
`{{某指令}} | base64`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 将标准输入解码:
|
2020-11-04 20:12:56 +00:00
|
|
|
|
2021-03-07 22:58:11 +00:00
|
|
|
`{{某指令}} | base64 --decode`
|