Skip to content

Instantly share code, notes, and snippets.

@lambdahands
Created September 30, 2014 19:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lambdahands/5d771efe643f41a4fb29 to your computer and use it in GitHub Desktop.
Save lambdahands/5d771efe643f41a4fb29 to your computer and use it in GitHub Desktop.
Little script to encrypt + upload and download + decrypt files. Uses gpg and http://transfer.sh
#!/bin/bash
transfer() {
echo $(gpg -ac --cipher-algo AES256 --sign --force-mdc < $1) | curl http://transfer.sh/$1 -T -
}
recover() {
curl $1 | gpg -ad
}
alias transfer=transfer
alias recover=recover
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment