2025-03-14 21:59:59 -06:00
|
|
|
# basenc
|
|
|
|
|
|
|
|
|
|
> Encode or decode file or `stdin` using a specified encoding, to `stdout`.
|
|
|
|
|
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/basenc-invocation.html>.
|
|
|
|
|
|
|
|
|
|
- Encode a file with base64 encoding:
|
|
|
|
|
|
|
|
|
|
`basenc --base64 {{path/to/file}}`
|
|
|
|
|
|
|
|
|
|
- Decode a file with base64 encoding:
|
|
|
|
|
|
2025-04-25 19:33:51 -06:00
|
|
|
`basenc {{[-d|--decode]}} --base64 {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Encode from `stdin` with base32 encoding with 42 columns:
|
|
|
|
|
|
2025-04-25 19:33:51 -06:00
|
|
|
`{{command}} | basenc --base32 {{[-w|--wrap]}} 42`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Encode from `stdin` with base32 encoding:
|
|
|
|
|
|
|
|
|
|
`{{command}} | basenc --base32`
|