1BASENC(1)                        User Commands                       BASENC(1)
2
3
4

NAME

6       basenc - Encode/decode data and print to standard output
7

SYNOPSIS

9       basenc [OPTION]... [FILE]
10

DESCRIPTION

12       basenc encode or decode FILE, or standard input, to standard output.
13
14       With no FILE, or when FILE is -, read standard input.
15
16       Mandatory  arguments  to  long  options are mandatory for short options
17       too.
18
19       --base64
20              same as 'base64' program (RFC4648 section 4)
21
22       --base64url
23              file- and url-safe base64 (RFC4648 section 5)
24
25       --base32
26              same as 'base32' program (RFC4648 section 6)
27
28       --base32hex
29              extended hex alphabet base32 (RFC4648 section 7)
30
31       --base16
32              hex encoding (RFC4648 section 8)
33
34       --base2msbf
35              bit string with most significant bit (msb) first
36
37       --base2lsbf
38              bit string with least significant bit (lsb) first
39
40       -d, --decode
41              decode data
42
43       -i, --ignore-garbage
44              when decoding, ignore non-alphabet characters
45
46       -w, --wrap=COLS
47              wrap encoded lines after COLS character (default 76).  Use 0  to
48              disable line wrapping
49
50       --z85  ascii85-like encoding (ZeroMQ spec:32/Z85); when encoding, input
51              length must be a multiple of 4; when decoding, input length must
52              be a multiple of 5
53
54       --help display this help and exit
55
56       --version
57              output version information and exit
58
59       When  decoding, the input may contain newlines in addition to the bytes
60       of the formal alphabet.  Use --ignore-garbage  to  attempt  to  recover
61       from any other non-alphabet bytes in the encoded stream.
62

ENCODINGS EXAMPLES

64              $ printf '\376\117\202' | basenc --base64
65              /k+C
66
67              $ printf '\376\117\202' | basenc --base64url
68              _k-C
69
70              $ printf '\376\117\202' | basenc --base32
71              7ZHYE===
72
73              $ printf '\376\117\202' | basenc --base32hex
74              VP7O4===
75
76              $ printf '\376\117\202' | basenc --base16
77              FE4F82
78
79              $ printf '\376\117\202' | basenc --base2lsbf
80              011111111111001001000001
81
82              $ printf '\376\117\202' | basenc --base2msbf
83              111111100100111110000010
84
85              $ printf '\376\117\202\000' | basenc --z85
86              @.FaC
87

AUTHOR

89       Written by Simon Josefsson and Assaf Gordon.
90

REPORTING BUGS

92       GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
93       Report any translation bugs to <https://translationproject.org/team/>
94
96       Copyright  ©  2020  Free Software Foundation, Inc.  License GPLv3+: GNU
97       GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
98       This is free software: you are free  to  change  and  redistribute  it.
99       There is NO WARRANTY, to the extent permitted by law.
100

SEE ALSO

102       Full documentation <https://www.gnu.org/software/coreutils/basenc>
103       or available locally via: info '(coreutils) basenc invocation'
104
105
106
107GNU coreutils 8.32                April 2020                         BASENC(1)
Impressum