729 B
729 B
base64
将文件或
stdin
编码或解码为 base64,输出到stdout
或其他文件。 更多信息:https://man.freebsd.org/cgi/man.cgi?query=base64。
- 将文件编码到
stdout
:
base64 {{-i|--input}} {{path/to/file}}
- 将文件编码到指定的输出文件:
base64 {{-i|--input}} {{path/to/input_file}} {{-o|--output}} {{path/to/output_file}}
- 在特定宽度上包装编码输出(
0
禁用包装):
base64 {{-b|--break}} {{0|76|...}} {{path/to/file}}
- 将文件解码到
stdout
:
base64 {{-d|--decode}} {{-i|--input}} {{path/to/file}}
- 从
stdin
编码到stdout
:
{{command}} | base64
- 从
stdin
解码到stdout
:
{{command}} | base64 {{-d|--decode}}