Created
December 8, 2017 17:45
-
-
Save rlueder/4a81575547fd7c745ae315e0329ecade to your computer and use it in GitHub Desktop.
encode/decode strings to/from base64 on the terminal
This file contains hidden or 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
// Encode | |
echo -n 'username:password' | openssl base64 | |
// dXNlcm5hbWU6cGFzc3dvcmQ= | |
// Decode | |
echo `echo dXNlcm5hbWU6cGFzc3dvcmQ= | base64 --decode` | |
// username:password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment