Created
July 12, 2016 14:13
-
-
Save BeanBagKing/019252de635f8748d36e47ee2d57d3b1 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
string=$1 | |
YEL='\033[1;33m' | |
NC='\033[0m' # No Color | |
if [ -z $string ]; then | |
echo "Usage: `basename $0` [BASE64 STRING]" | |
exit 1 | |
fi | |
result=`echo -n $string | base64 -d` | |
echo -e "${YEL}BASE64:${NC} $string" | |
echo -e "${YEL}PLAIN :${NC} $result" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment