Skip to content

Instantly share code, notes, and snippets.

@jlizanab
Created January 21, 2019 17:10
Show Gist options
  • Save jlizanab/3b4525bad15cc1de8104f51947e58116 to your computer and use it in GitHub Desktop.
Save jlizanab/3b4525bad15cc1de8104f51947e58116 to your computer and use it in GitHub Desktop.
#add the following code to your bash_profile
#open new terminal to test it
base64d(){
printf "`echo $1 | base64 --decode` Copied to clipboard!\n"
echo $1 | base64 --decode | pbcopy
}
base64e(){
#echo -n '35855518' | openssl base64
printf "`echo -n $1 | openssl base64` Copied to clipboard!\n"
echo -n $1 | openssl base64 | pbcopy
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment