basenc
Encode/decode data and print to standard output With no FILE, or when FILE is -, read standard input. When decoding, the input may contain newlines in addition to the bytes of the formal alphabet …
Encode/decode data and print to standard output With no FILE, or when FILE is -, read standard input. When decoding, the input may contain newlines in addition to the bytes of the formal alphabet …
basenc [-d|--decode] [-i|--ignore-garbage] [-w|--wrap] [--base64] [--base64url] [--base32] [--base32hex] [--base16] [--base2lsbf] [--base2msbf] [--z85] [--base58] [-h|--help] [-V|--version] [file]
Encode/decode data and print to standard output With no FILE, or when FILE is -, read standard input.
When decoding, the input may contain newlines in addition to the bytes of the formal alphabet. Use --ignore-garbage to attempt to recover from any other non-alphabet bytes in the encoded stream.
v(uutils coreutils) 0.10.0
Encode a file with Base64 encoding:
basenc --base64 path/to/file
Decode a file with Base64 encoding:
basenc [-d|--decode] --base64 path/to/file
Encode from `stdin` with Base32 encoding with 42 columns:
command | basenc --base32 [-w|--wrap] 42
Encode from `stdin` with Base32 encoding:
command | basenc --base32
The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail.