If you want to encrypt a file with the base64 algorimo can use the following command

cat archivo| base64 > cifrado

where file is the file you want to encrypt and estimated the resulting

To decrypt a file encrypted with base64 will use a command like

cat cifrado |base64 -d

where is the file encryption algorithm encoded with base64

To learn more about base64