Skip to content

Commit

Permalink
Update Encryption Examples (#592)
Browse files Browse the repository at this point in the history
Use long flags (i.e. --armor) which are easier to understand in examples

Co-authored-by: Andrea Spacca <[email protected]>
  • Loading branch information
amayer5125 and aspacca authored Feb 22, 2024
1 parent b518754 commit 54b4f1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ $ transfer /tmp/hello.txt | mail -s "Hello World" [email protected]

### 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/)
Expand Down

0 comments on commit 54b4f1a

Please sign in to comment.