my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
281 B

3 years ago
  1. encode64() {
  2. if [[ $# -eq 0 ]]; then
  3. cat | base64
  4. else
  5. printf '%s' $1 | base64
  6. fi
  7. }
  8. decode64() {
  9. if [[ $# -eq 0 ]]; then
  10. cat | base64 --decode
  11. else
  12. printf '%s' $1 | base64 --decode
  13. fi
  14. }
  15. alias e64=encode64
  16. alias d64=decode64