Encode or decode file or
stdin
to/from base64, tostdout
or another file. More information: 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
disables wrapping):base64 {{[-b|--break]}} {{0|76|...}} {{path/to/file}}
stdout
:base64 {{[-d|--decode]}} {{[-i|--input]}} {{path/to/file}}
stdin
to stdout
:{{command}} | base64
stdin
to stdout
:{{command}} | base64 {{[-d|--decode]}}