Created
August 13, 2013 12:42
-
-
Save aspitz/6220724 to your computer and use it in GitHub Desktop.
Encode/decode a binary file into/out of base64 from the command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To encode | |
> base64 -i [source.binary] -o [destination.base64] | |
To decode | |
> base64 -D -i [source.base64] -o [destination.binary] | |
To encode directly into the clipboard | |
> base64 < [source.binary] | pbcopy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment