b64 - simple but useful Base-64 encoder/decoder

There's probably nothing you can do with this that you can't do with other tools, but I've found it useful to keep around.

The source and binary distributions are hosted on my Artifactory server.

The default behaviour is to Base-64 encode a text (from the command-line arguments) and print the result on standard out, broken into 76-character lines. Add -d to decode Base-64 in the same mode.

If the data is binary, you can add -h to get a hex dump of the result.

To read from a file, use -f <file>, and to write the result to a file, use -o <file>.

To stop the program from breaking Base-64 output in 76-character lines, use -B.