Encode or decode file or
stdin
using a specified encoding, tostdout
. More information: https://www.gnu.org/software/coreutils/basenc.
basenc --base64 path/to/file
basenc --decode --base64 path/to/file
stdin
with base32 encoding with 42 columns:command | basenc --base32 -w42
stdin
with base32 encoding:command | basenc --base32