in reply to Base64 encode and decode

If you have the unix utility recode installed, you can encode or decode your file in-place:
# encoding recode char../b64 $file # decoding recode /b64..char $file