Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.