fastbase641
Base64 encode/decode data and print to standard output
Usage
fastbase64 [-Ddh]
[-b
num]
[-i
in_file]
[-o
out_file]
Overview
fastbase64 encodes or decodes base64 data using the high-performance simdutf library. By default, it encodes binary input to base64 output. On large files, it can be several times faster than standard base64 tools. If a second filename is provided, it is used as the output file. Otherwise, output goes to standard output.
Options
-
-b, --break num -
break encoded output up into lines of length num (default 0, meaning no breaks)
-
-D, -d, --decode -
decode input
-
-h, --help -
display this message
-
-i, --input in_file -
input file (default: "-" for stdin)
-
-o, --output out_file -
output file (default: "-" for stdout)
-
-w, --wrap=NUM -
same as
-b
-
-e, --encode -
encode input (default)
-
--ignore-garbage -
when decoding, ignore non-alphabet characters
-
--version -
output version information and exit
Examples
Encode a file (default, no wrapping):
|
fastbase64 -i myfile.txt |
|---|---|
Decode base64 data:
|
fastbase64 -d -i encoded.txt |
Encode with custom line wrapping:
|
fastbase64 -b 76 -i myfile.txt |