2023-05-09 04:16:16 +02:00
|
|
|
# basenc
|
|
|
|
|
2023-08-09 07:29:02 +02:00
|
|
|
> Encode or decode file or `stdin` using a specified encoding, to `stdout`.
|
2024-12-09 18:55:35 -08:00
|
|
|
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/basenc-invocation.html>.
|
2023-05-09 04:16:16 +02:00
|
|
|
|
|
|
|
- Encode a file with base64 encoding:
|
|
|
|
|
|
|
|
`basenc --base64 {{path/to/file}}`
|
|
|
|
|
|
|
|
- Decode a file with base64 encoding:
|
|
|
|
|
|
|
|
`basenc --decode --base64 {{path/to/file}}`
|
|
|
|
|
|
|
|
- Encode from `stdin` with base32 encoding with 42 columns:
|
|
|
|
|
|
|
|
`{{command}} | basenc --base32 -w42`
|
|
|
|
|
|
|
|
- Encode from `stdin` with base32 encoding:
|
|
|
|
|
|
|
|
`{{command}} | basenc --base32`
|