Created
September 30, 2014 19:34
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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