Skip to content

Instantly share code, notes, and snippets.

@yfe404
Created November 26, 2021 11:29
Show Gist options
  • Save yfe404/0cefc1c22be44df7d9d0b21df7656be3 to your computer and use it in GitHub Desktop.
Save yfe404/0cefc1c22be44df7d9d0b21df7656be3 to your computer and use it in GitHub Desktop.
Send encrypted files anonymously using pastebin
Pre-conditions
--------------
- The following packages must be installed on both ends: gpg, xxd.
- Sender and Receiver must know the password to encrypt/decrypt the data.
Sender
------
$ gpg --symmetric $FILE_TO_SEND
$ xxd $FILE_TO_SEND.gpg > dump
$ cat dump | xclip
# post content of clipboard on pastebin using tor/vpn (automatic way of doing so will be added later)
Receiver
--------
$ wget $URL_ON_PASTEBIN -O out
$ xxd -r out > data.gpg
$ gpg --decrypt data.gpg > data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment