$ base64
Base64 encode and decode tools.
Usage: base64 [options] [INPUT]...
Options:
-h,--help Show this help message.
-d,--decode Decode input. Default use encode.
-f <PATH>,--file=<PATH> Iutput file path.
-o <PATH>,--output=<PATH> Output file path.
$ ./base64 aabbccddeeffg
(main:488) Get string [aabbccddeeffg] size [13]!
YWFiYmNjZGRlZWZmZw==
$ ./base64 -d YWFiYmNjZGRlZWZmZw==
(main:488) Get string [YWFiYmNjZGRlZWZmZw==] size [20]!
aabbccddeeffg
$ ./base64 -f testfile
(main:141) Input file [testfile] size [17760]!
(main:156) Get file buff size [17760]!
(main:189) base64 output buff [23680] too large, write to file [base64.out]!
(main:193) output file name [base64.out]
$ ./base64 -d -f base64.out -o testfile.out
(main:141) Input file [base64.out] size [23680]!
(main:156) Get file buff size [23680]!
(main:193) output file name [testfile.out]
$ md5sum testfile
7917a2833ea4e129a46ca2cfe461171f testfile
$ md5sum testfile.out
7917a2833ea4e129a46ca2cfe461171f testfile.out