Silk Road forums

Discussion => Security => Topic started by: cortex on June 24, 2011, 01:29 am

Title: Public Keys
Post by: cortex on June 24, 2011, 01:29 am
I am using a mac with GPGDropThing and GPG Keychain. I am trying to figure out how to take someones public key and use that to encrypt a message I want to send to them. I have looked at all the tutorials (on these forums) and unless I completely missed something, public key encryption is never fully explained. Do I use GPG Keychain? I can only create new keys with that. GPGDropThing only seems to recognize keys I've created on the keychain. Help please.  :-[

Thanks -c
Title: Re: Public Keys
Post by: mrlimpet on June 24, 2011, 02:05 am
I also use a mac, and it took me awhile to figure it out. To import someones key in your keychain just copy and paste their key put it into a text editor and save it as .gpg.

then import the key into your keychain

open a text editor and write your message, save it then right click the file and chose OpenPGP:Encrypt file. This will open your keychain and have you chose your recipients, chose who the message is for and yourself. Then it will create the encrypted file. You can copy the encrypted message and paste it into the message of the person you are sending it to.

Decryption - This is the part I had trouble with until I find an easier way I will continue to use Terminal

open Terminal and type "gpg --output /users/(yourname)/desktop/(newfilename.txt) --decrypt /users/(yourname)/desktop/(encrypted file)
when you press enter it will ask you to enter your passphrase then it will output the decrypted message as a .txt

Thats what I do and you can write up a test message to make sure you are doing everything correctly

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org

mQENBE38Q0wBCACpBv0L7CnafPAOGoJrysD5CMPogLzWxIQRzIf947pExkSRZrep
XOOAJEFwV3qL22EUkBBi2FDcxtwtjVQf9dv4vZ3wyxp0xOOCRuLzTjlisJyOd3r+
u1xXBLjpZJ63XlhlJkeEfcmWgR8qQpF6hcS4OvjopF96UrNf0gHh+YaAEThCn+KK
+lQ+CbpN4QNRXHE4j7YGfC4yKOVNMBboXi7kzNnyaYS/mnCianzMvVHXto/haCys
LcITnC/rb+SJFTABpCz3t8BE1oKf78Kk/xRxLy3iJDNN4HGKqenFh1rmn5rOX4FP
sJdmW6Ro7IK5oF1St6+kQGQWJM12FWWaDNu7ABEBAAG0IG1ybGltc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6sf1pI4hE5ofZ8ebUuLBOqSEuGWK7wtHF7mC
mOAFAqYee0R1qVg4RYqcB+F02IxU2K+I12v5rSWoAzadTje+cpqrvO3BDY3mdz1J
7B1wHVJAduJA83q+CI0tDAYx4p0wueiCA8Zwnzr5CKXFMLCJG2EPxMfCkYGmbR4x
QaLywQdormIIXZMxB/wIHfvDK6fNu3jkKPYIzqtYPgLysRj+8cGFeduItNyxhT0m
zLV6UruSIVUx305P8pe1QqTSSlKr/roxneTDFp9jPo24iLU/2S21JWEu0g+UTAZW
m0fMLiUOPfLUXb8yO3W4LU82tKT5b5JfGvX+nk8rrAOQgHEy/IeccDVHAZ9aRTZf
5q2Q/gWUGLkQiRT6mi4q6dWVv1JtoIfi/1OckVW2GaXwoZomIKALMnSOmrQyAkrt
viXkoXQXR8Te7BBsxgOIH98eTQSvqQoUl3P80fsTBnX2pc52v08PR5e/B7I3gkS7
Uxa9AVw76pEdX/NvFKbjLjOEq0wQ75yM4Ks6Ovj/
=cl5C
-----END PGP PUBLIC KEY BLOCK-----
Title: Re: Public Keys
Post by: wicked420 on June 25, 2011, 03:00 am
http://p3lr4cdm3pv4plyj.onion/

I've put together this site, as a collection of guides that people have posted over the past month or so.

There is also a GPG test page so that you can test your importing/encryption techniques.

Good luck, and enjoy!
-wicked420
Title: Re: Public Keys
Post by: mrlimpet on June 25, 2011, 04:43 am
I tried your TorID test and it just brought me to a blank webpage, maybe im not encrypting it right
Title: Re: Public Keys
Post by: wicked420 on June 26, 2011, 03:19 am
make sure that you've selected/copied the key correctly, you have to get every dash, for example, so just check you've imported the key on the right correctly.

but it works, if you're doing it all right!
Title: Re: Public Keys
Post by: chronicpain on June 26, 2011, 03:25 am
I can vouch that wicked's program works just fine. I copied hit TOR's public key, imported to my key ring. made a message in clipboard and encrypted it with the public key. copied the entire thing into the program and it decrypted it just fine..

Thanks for all your help, too...
Title: Re: Public Keys
Post by: cortex on June 27, 2011, 12:00 am
http://p3lr4cdm3pv4plyj.onion/

I've put together this site, as a collection of guides that people have posted over the past month or so.

There is also a GPG test page so that you can test your importing/encryption techniques.

Good luck, and enjoy!
-wicked420

Thanks I actually looked through this page earlier but somehow missed this link:

hxxp://www.robertsosinski.com/2008/02/18/working-with-pgp-and-mac-os-x/

That helped me a lot. So I've pretty much got it figured out now. Thanks!
Title: Re: Public Keys
Post by: mrlimpet on June 28, 2011, 02:56 am
I don't know what I am doing wrong, I imported TORID's public key made a message in a text editor encrypted it with the public key copied the encrypted message and it still returns me to a blank page
Title: Re: Public Keys
Post by: mrlimpet on June 28, 2011, 03:06 am
Nevermind I got it to work I encrypted it through mail. I know what I am doing now
Title: Re: Public Keys
Post by: AudiophileFreedom on June 29, 2011, 12:03 am
Hey everyone, I'm kinda new to this community, but I think it's great and I really want to learn to be more secure. Obviously I downloaded TOR and figured out how to use the anonymous web browser. Now that I'm using BTC, SR, and this forum, I'm finding out a lot of useful info.

I've been seeing a lot of stuff about PGP and I'm very interested in learning how to use it. I have a Mac, can you recommend what PGP software I should get, and where I can go to learn how to use it properly?

I know how annoying it must be to deal with noobs like myself, but I want to learn how to be a responsible, safe, untraceable member of this community.

Cheers!
Title: Re: Public Keys
Post by: obama on June 30, 2011, 10:05 pm
@mrlimpet

"open a text editor and write your message, save it then right click the file and chose OpenPGP:Encrypt file. This will open your keychain and have you chose your recipients, chose who the message is for and yourself. Then it will create the encrypted file."

ok so after this step i have created a file that looks like untitled.txt.gpg
how do I copy the contents of the .gpg file to send to someone via pm?
Title: Re: Public Keys
Post by: Kind Bud on July 01, 2011, 01:40 am
most people can skip the tutorial if they just keep one thing in mind:

You encrypt for a person. You use their public key to encrypt for them. Not even you can read what you just wrote, only they can decrypt it.

that's it stop reading.

The most common mistake is people try to use their own keys for stuff. You don't really ever actively use your own keys. Your private key is hidden and pretty much invisible for normal use.  It is used in the background by the program to decode messages people have encoded for you. You do give out your public key so people can encode for you but you will never use it.

*make a backup of your private key for crashes but other than that ignore it.
Title: Re: Public Keys
Post by: mrlimpet on July 02, 2011, 02:05 am
@Obama

how to open a .txt.gpg file is simply change the file to a .txt by simply deleting the .gpg,

however I found out through testing on TorID this will not work. when you write your message in a text editor, highlight the text and right-click go to the bottom of the drop down menu to Services and choose OpenPGP: Encrypt File.

If you do things correctly, your encrypted message should look like the PGP key block but says message instead " ------BEGIN PGP MESSAGE----- "