Submitted by SHILL on Sept. 6, 2018, 6:36 a.m.

How to PGP in terminal

Don't rely on market's "encrypt this message" button. The messages get messed up a lot. It's very easy to use gpg from a terminal.

This assumes you are using linux.

If you want to order from any vendor first, copy their public key into a text file

-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBFqYxZkBEAC0OsoYLldedI/lIveCc/P0qQ1vBorfw27+FnjTdX4cK1AuON5y
MC2H5e/+jPFCxTRG1wrahDdyyIm16D6HGtLCyUXPugXhfbBYyqvCCbgMeKhvm2Xl
MjqJJL0ymGv07UzDb3JZTrXNhOlNs53iWP7c/8p0fRh8yKXAc+ybkrIh9tsgeNF/
f0JGj8IeCrybJvfDrYFggnPWgaPoujyMvH0J6FB3TSnVv89WItOpeu5gGlLc/haU
p7wVhLhhhO0g3k9ntymOIXQ7UcQz7fLJ7PKgwr/aZa/bFBqmD8uo/hL+f33Diqqr
DoKlhXLQdegcdXq9tRI5hacGxav2gXGwzTRQxVVn0IbHq9CSrYr95eoufDUF3Bel
J7B1T8Ax9+9HgOqCyrbXafspU+LdPnDlmhZvFHnaJNLOi6YhrXB91jwZi/YomEnd
V7jMBTlgUF2vP7RwJvN60bczrtaAuCKFKhxsLZFjeB19JHV2oclNfAffo13RRhlT
NZYevb3YZlqNNbvMgjTj6iwxZz/7uH3RmVnT0rahnIi49e0FXfHUHfE8F5s4xGwz
KBnHk4Ny56M3YWg4/TbCvt9ijxDQ1uWzC6U14p/vSU4bWRfruFqFu1A8HtLINt+f
7mB3CzsW2wWp7+3tnrdAI6GFTKCsLEnj4YNj67oMcP3ZnKSRmsRFjy/rSQARAQAB
tAVrZXkwMYkCTgQTAQgAOBYhBHMe0aPxur2cz2Vm1Pi2Z5GNXEEqBQJamMWZAhsD
BQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEPi2Z5GNXEEqwgYP/2nG0xJdIY7A
vQjO9GA1nZQFLtvv7n5R8WSrt3tso3rfDWgoqBxXsrIz7uiO3m4Y47GslQuN5Lgz
bYA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save the file to a disk location, in this example, the Documents folder and called 'pubkey'

open a terminal and type:

user@linux:~$ cd ~/Documents
user@linux:~/Documents$ touch pubkey
user@linux:~/Documents$ nano pubkey

paste the pgp public key and save the file

user@linux:~/Documents$ gpg --import pubkey

This will return something like this:

gpg: key 0xF8B667918D5C412A: "key01" imported
gpg: Total number processed: 1
gpg: imported: 1

Copy the keyID string

Then, to encrypt your order info reusing the pubkey file:

user@linux:~/Documents$ nano pubkey

Save the file, then encrypt with gpg

user@linux:~/Documents$ gpg -e -a -r 0xF8B667918D5C412A pubkey

Open the pgp encrypted message pubkey.asc and copy it into the shipping info field.

Don't check the box that says encrypt this message if you have already encrypted.

no comments