Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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