HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

base32 — Encode or decode file or `stdin` to/from Base32, to `stdout`. More information: <https://manned.org/

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandbase32fromdecodecliencodefilestdin

Problem

How to use the base32 command: Encode or decode file or stdin to/from Base32, to stdout. More information: <https://manned.org/base32>.

Solution

base32 — Encode or decode file or stdin to/from Base32, to stdout. More information: <https://manned.org/base32>.

Encode a file:
base32 {{path/to/file}}


Wrap encoded output at a specific width (0 disables wrapping):
base32 {{[-w|--wrap]}} {{0|76|...}} {{path/to/file}}


Decode a file:
base32 {{[-d|--decode]}} {{path/to/file}}


Encode from stdin:
{{command}} | base32


Decode from stdin:
{{command}} | base32 {{[-d|--decode]}}

Code Snippets

Encode a file

base32 {{path/to/file}}

Wrap encoded output at a specific width (`0` disables wrapping)

base32 {{[-w|--wrap]}} {{0|76|...}} {{path/to/file}}

Decode a file

base32 {{[-d|--decode]}} {{path/to/file}}

Encode from `stdin`

{{command}} | base32

Decode from `stdin`

{{command}} | base32 {{[-d|--decode]}}

Context

tldr-pages: common/base32

Revisions (0)

No revisions yet.