Silk Road forums

Discussion => Newbie discussion => Topic started by: guacamolly on August 01, 2013, 06:32 am

Title: PGP Help Macbook
Post by: guacamolly on August 01, 2013, 06:32 am
First let me say, thanks for taking the time to read. I have been trying to figure this thing out for days, and am now almost ready to give up, so I'm hoping one of you fellow silkroaders can help me. I have a mac, and I have downloaded GPG, I have also been on their website and gone through the tutorials. I followed their instructions to send an encrypted email to myself, and I did receive it, However I could not open it. Every time I tried to open it, it would give me a code 0 or something like that, and say I failed. What am I doing wrong?! Secondly, how do I get my entire long PGP code, so that I can post it in a forum like this one for instance, and receive stuff from people? If someone could help me out, I would really appreciate it! Also if someone could work with me and let me send them a message and them send me one back that would also be a huge help. Thank you
Title: Re: PGP Help Macbook
Post by: ytabletrash on August 01, 2013, 06:50 am
well, Im not sure how the mac gpg program works but in the tutorial it should say somewhere about how to access your public key. this is the one you use to give to everyone else.
Title: Re: PGP Help Macbook
Post by: guacamolly on August 01, 2013, 08:42 pm
Hmm, I will have to check into that. I appreciate it, figuring all of this out is such a chore. I wish someone could just come over to my place and SHOW me exactly what to do lol
Title: Re: PGP Help Macbook
Post by: twofish on August 01, 2013, 09:06 pm
I just got this working on my macbook recently. 

I don't know how computer proficient you are, but I only know how to do this via the command line, so get ready for it.
Start by installing gpgtools (I think you did this already) from https://gpgtools.org/

Then quit the program and docs they open in safari. 
Make a folder in your home directory, call it "gp".  In that folder save text files with the gpg keys you would like to import, such as "import1.txt"
Verify that the folder is called "gp" and the files are there with the proper GPG text.
Now in that folder, make a text file, message.txt, with your message.

Next, open "Terminal" (in Applications/Utilities). 

Copy and paste the commands as follows:
Quote
cd /User/"YOUR USERNAME HERE"/gp
ls -lh

you should see the text files - good

now run this:
Quote
gpg --import import1.txt
gpg --import import2.txt
gpg --import import3.txt
...etc for each key to import.

Now we will make sure they imported
Quote
gpg --list-key
You should see the keys listed, and most importantly, NOTE THE EMAIL, it has to be EXACT (case sensitive etc)

Now, we are ready to encrypt a message for one of our imported keys.
Quote
gpg --recipient THEEXACTEMAIL@TORMAIL.ORG -a --encrypt message.txt

After a second or two, you should see a new file in that folder, message.txt.asc, that contains your encrypted message.  Great!

Paste that text, send your message now let's clean everything up.

make SURE you're still in /Users/"YOUR USERNAME"/gd
Quote
pwd
if this command does not list that directory, DO NOT CONTINUE - you could break your operating system

as long as you are still there (you should be), do the following:
Quote
rm -Rf *
cd ..
rm -Rf gd

this will remove all the files we created.  now lets get those identities out of gpg

Quote
gpg --delete-key THEIRADDRES@EXACTLY.COM

Done!

Best of luck


Hopefully this helps.



Title: Re: PGP Help Macbook
Post by: twofish on August 01, 2013, 09:09 pm
oh, and i don't think you want to mess with gpg in your email, and tying silk road etc to your email - stick to it the way I mentioned and there should be no trace left after you send your messages
Title: Re: PGP Help Macbook
Post by: Tiger on August 01, 2013, 09:33 pm
Do you specifically want to use GPG with e-mail or is it more for SR use?

To get your public key, right click in textedit/whatever and 'insert my public key'.

Before you do this you'll need to go system preferences>keyboard. Click services in the menu on the left and scroll down to the PGP options, enable the things you think you'd need.

How did you encrypt your message if you cant get your public key?

Message me if you want more help, there's also the newbie pgp thread for people looking to encrypt and decrypt messages.
Title: Re: PGP Help Macbook
Post by: guacamolly on August 01, 2013, 11:18 pm
@ twofish, I appreciate it, but I am not good working out of the terminal. That was just confusing me more, I do appreciate you taking the time to type all of that out though! @tiger Just for silkraod purposes, I don't really send sensitive emails so for that I do not really have the need to encrypt. I encrypted the message using an 8 digit short id they gave me, but I would like to figure out how to see the whole code, as well as everything else, I wish a developer could make a more user friendly program, because the ones on the market now suck IMO
Title: Re: PGP Help Macbook
Post by: Tiger on August 02, 2013, 12:30 am
Cool, you don't need to use terminal in that case.

Do as I said in my last post to get your full public key. Of course, if it's just for encrypting your address you don't need to see your public key.
Title: Re: PGP Help Macbook
Post by: guacamolly on August 02, 2013, 01:34 am
I'll try man, thanks a lot. I did all the keyboard preferences, is textedit for this specific program? I didn't see it as an option. Probably should just message you lol
Title: Re: PGP Help Macbook
Post by: manningsnowden311 on August 02, 2013, 03:34 am
download GPG Keychain Access.
Install.
Open.

Whenever you find a vendor you want to use, copy their Public Key.
Create a text document ( I use TextEdit, but any word processor will work)
Paste their public key into the word processor.
Save.
Go to GPG Key Chain Access.
Select "Import"
Choose the file you just saved with the vendors public key.

Now the vendors public key is in your keychain access.

Now, whenever you want to send them an encrypted message, open you email client on your mac, select the compose button. (you will not be sending an email, bare with me.)

Type your address, or whatever message into the compose email window.
Highlight the text and double finger click or right click (whatever your configuration)
At the bottom you will see "services"  click "OpenPGP: Encrypt selection to new window"
Next, you will see a window pop up and you should see the vendor you selected in the window, check the box next to their name.  At the bottom you will see a drop down box that says "secret Key" select your account. (If you dont have one you can create one by selecting "New"  from GPG KeyChain access and create a new key)
 then click ok, and then, boom!! Encrypted message. Copy and paste into the vendors address box when you order your product.

Thats how i do it. Very easy once you do it once correctly.
Title: Re: PGP Help Macbook
Post by: manningsnowden311 on August 02, 2013, 03:37 am
Also you ca Decrypt the same way. Copy the encrypted message into your emails compose box, right click and select decrypt instead of encrypt
Title: Re: PGP Help Macbook
Post by: Tiger on August 02, 2013, 03:42 pm
download GPG Keychain Access.
Install.
Open.

Whenever you find a vendor you want to use, copy their Public Key.
Create a text document ( I use TextEdit, but any word processor will work)
Paste their public key into the word processor.
Save.
Go to GPG Key Chain Access.
Select "Import"
Choose the file you just saved with the vendors public key.

Now the vendors public key is in your keychain access.

You can also just paste straight into the keychain window, much easier!

Quote
Now, whenever you want to send them an encrypted message, open you email client on your mac, select the compose button. (you will not be sending an email, bare with me.)

Type your address, or whatever message into the compose email window.
Highlight the text and double finger click or right click (whatever your configuration)
At the bottom you will see "services"  click "OpenPGP: Encrypt selection to new window"
Next, you will see a window pop up and you should see the vendor you selected in the window, check the box next to their name.  At the bottom you will see a drop down box that says "secret Key" select your account. (If you dont have one you can create one by selecting "New"  from GPG KeyChain access and create a new key)
 then click ok, and then, boom!! Encrypted message. Copy and paste into the vendors address box when you order your product.

Thats how i do it. Very easy once you do it once correctly.

Yep, this. I use textedit, which is just a text program that comes with macs, same principle though.

One more thing worth mentioning- You'll want to untick the 'add to recipients' box, I believe this means the recipient won't be able to decrypt the message unless they have your key saved...Which vendors won't.
Title: Re: PGP Help Macbook
Post by: guacamolly on August 06, 2013, 08:32 pm
You guys are awesome! I got it working now. The only thing left I have to figure out now, is how to retrieve my public key, so that I can post it to a forum such as this
Title: Re: PGP Help Macbook
Post by: guacamolly on August 06, 2013, 08:48 pm
Figured that out too, who knew it was as simple as highlighting my name in GPG and clicking "copy" haha. You guys have seriously been a great help though, and I really do appreciate it
Title: Re: PGP Help Macbook
Post by: manningsnowden311 on August 06, 2013, 10:10 pm
good.  Congrats, man!
Title: Re: PGP Help Macbook
Post by: Transcend Reality on August 07, 2013, 03:59 am
I used to use the email app until they made it impossible, so I switched to the terminal ver. BTW you can trigger recipiant by doing just -er and -oa :)
Title: Re: PGP Help Macbook
Post by: Hargenflargen on August 07, 2013, 05:06 am
Ohmygod, I'm so glad I found this thread!

I had the exact same thing installed on my computer, made it work twice, and then didn't use it for a while, and forgot how to do it. I tried over and over and just couldn't seem to figure it out

Thanks everyone on here for making it simpler! I'm going to try an encrypted message right now!
Title: Re: PGP Help Macbook
Post by: guacamolly on August 26, 2013, 06:01 am
Bump for anyone that needs more help, this helped me out in a big way