Base64 with OSX

from this blog.

To decode

openssl base64 -d -in infile -out outfile

To encode

openssl base64 -in infile -out outfile

You can also use perl:

perl -pe 'use MIME::Base64; $_=MIME::Base64::decode($_);'

and there’s also the base64 utility in MacPorts. OpenSSL is already installed and I don’t have to dick around with perl to use it.

Add picture from clipboard (Maximum size: 1 GB)