Base64 Encode & Decode on OSX

On OSX you can quickly base64 encode:

~

On OSX you can quickly base64 encode:

base64 -in filename.txt > filename.b64

and decode files:

base64 -D -in filename.b64 > filename.txt