Skip to content

Instantly share code, notes, and snippets.

@aligos
Created January 14, 2019 04:12
Show Gist options
  • Save aligos/4709da079007c6d75c187b283821d352 to your computer and use it in GitHub Desktop.
Save aligos/4709da079007c6d75c187b283821d352 to your computer and use it in GitHub Desktop.
#!/bin/bash
# how to run: bash base64.sh YOUR_STRING/SHA1/ETC.
echo "$1" | xxd -r -p | openssl base64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment