TrumanWong

base64

base64 encode/decode files or standard input and output

describe

base64 encode or decode file or standard input to standard output;

grammar

base64 [OPTION]... [FILE]

Parameters

-d, --decode # Decode
-i, --ignore-garbage # Ignore non-alphabetic characters when decoding
-w, --wrap=COLS # Automatically wrap lines after the specified number of characters (default is 76), 0 disables automatic line wrapping

--help #Display this help description and exit
--version # Output version information and exit

Example

encoded string

printf foo|base64

encoding file

base64 file

decoding

printf Zm9v|base64 -d

decode file

base64 -d file