Base64 on terminal

Encode a string

 Decode a string

 Encode content of file

The -n after the echo command, prevents echo from appending a newline character on the end of the string.