diff --git a/README.md b/README.md index 867a0da512f22c7e46de79c93a36d9ef81caa97a..846c0b1c6e504ec6597256137b664eb1962a5366 100644 --- a/README.md +++ b/README.md @@ -17,12 +17,12 @@ $ curl -v --upload-file ./hello.txt https://transfer.sh/hello.txt ### Encrypt & Upload: ```bash -$ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt +$ gpg --armor --symmetric --output - /tmp/hello.txt | curl --upload-file - https://transfer.sh/test.txt ```` ### Download & Decrypt: ```bash -$ curl https://transfer.sh/1lDau/test.txt|gpg -o- > /tmp/hello.txt +$ curl https://transfer.sh/1lDau/test.txt | gpg --decrypt --output /tmp/hello.txt ``` ### Upload to Virustotal: diff --git a/examples.md b/examples.md index c9fd7b12bebf0797238c37cc2edabd1513bd23b3..d08e7c61c0a93d9d564985ee92162e755c028e4e 100644 --- a/examples.md +++ b/examples.md @@ -148,12 +148,12 @@ $ transfer /tmp/hello.txt | mail -s "Hello World" user@yourmaildomain.com ### Encrypting files with password using gpg ```bash -$ cat /tmp/hello.txt | gpg -ac -o- | curl -X PUT --upload-file "-" https://transfer.sh/test.txt +$ gpg --armor --symmetric --output - /tmp/hello.txt | curl --upload-file - https://transfer.sh/test.txt ``` ### Downloading and decrypting ```bash -$ curl https://transfer.sh/1lDau/test.txt | gpg -o- > /tmp/hello.txt +$ curl https://transfer.sh/1lDau/test.txt | gpg --decrypt --output /tmp/hello.txt ``` ### Import keys from [keybase](https://keybase.io/)