Skip to content

Instantly share code, notes, and snippets.

@BeanBagKing
Created July 12, 2016 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save BeanBagKing/019252de635f8748d36e47ee2d57d3b1 to your computer and use it in GitHub Desktop.
Save BeanBagKing/019252de635f8748d36e47ee2d57d3b1 to your computer and use it in GitHub Desktop.
#!/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