Made with mdzk
There is a base64 encoder that ships with Ubuntu!
base64
Use -w 0 to avoid linebreaks.
-w 0