Update Encryption Examples (#592)

Use long flags (i.e. --armor) which are easier to understand in examples

Co-authored-by: Andrea Spacca <andrea.spacca@gmail.com>
This commit is contained in:
Alex Mayer 2024-02-22 04:39:39 -05:00 committed by GitHub
parent b5187546b1
commit 54b4f1aa86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -17,12 +17,12 @@ $ curl -v --upload-file ./hello.txt https://transfer.sh/hello.txt
### Encrypt & Upload: ### Encrypt & Upload:
```bash ```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: ### Download & Decrypt:
```bash ```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: ### Upload to Virustotal:

View File

@ -148,12 +148,12 @@ $ transfer /tmp/hello.txt | mail -s "Hello World" user@yourmaildomain.com
### Encrypting files with password using gpg ### Encrypting files with password using gpg
```bash ```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 ### Downloading and decrypting
```bash ```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/) ### Import keys from [keybase](https://keybase.io/)