2016-02-05 11:37:35 -05:00
|
|
|
# base32
|
|
|
|
|
2023-08-09 07:29:02 +02:00
|
|
|
> Encode or decode file or `stdin` to/from Base32, to `stdout`.
|
2024-09-24 22:10:33 +07:00
|
|
|
> More information: <https://manned.org/base32>.
|
2016-02-05 11:37:35 -05:00
|
|
|
|
|
|
|
- Encode a file:
|
|
|
|
|
2022-12-06 07:47:56 +01:00
|
|
|
`base32 {{path/to/file}}`
|
2016-02-05 11:37:35 -05:00
|
|
|
|
2024-03-17 01:11:21 +11:00
|
|
|
- Wrap encoded output at a specific width (`0` disables wrapping):
|
|
|
|
|
2024-09-24 22:10:33 +07:00
|
|
|
`base32 {{-w|--wrap}} {{0|76|...}} {{path/to/file}}`
|
2024-03-17 01:11:21 +11:00
|
|
|
|
2016-02-05 11:37:35 -05:00
|
|
|
- Decode a file:
|
|
|
|
|
2024-09-24 22:10:33 +07:00
|
|
|
`base32 {{-d|--decode}} {{path/to/file}}`
|
2016-02-05 11:37:35 -05:00
|
|
|
|
2022-12-04 08:53:34 +01:00
|
|
|
- Encode from `stdin`:
|
2016-02-05 11:37:35 -05:00
|
|
|
|
2024-09-24 22:10:33 +07:00
|
|
|
`{{command}} | base32`
|
2016-02-05 11:37:35 -05:00
|
|
|
|
2022-12-04 08:53:34 +01:00
|
|
|
- Decode from `stdin`:
|
2016-02-05 11:37:35 -05:00
|
|
|
|
2024-09-24 22:10:33 +07:00
|
|
|
`{{command}} | base32 {{-d|--decode}}`
|