Silk Road forums
Discussion => Newbie discussion => Topic started by: 8447948 on August 28, 2013, 08:06 am
-
Im trying to understand how to use PGP for encryption, but in particular GPG Keychain Access for my mac. I have had a look at tutorials on the internet but a lot of them dont go through the full process, So I guess im asking for a bit of help.
I have searched around on here also, and the SR Wiki, although I thought I would make a post in case other people are having difficulty with GPG.
I have created a public and secret key combination in GPG, and Im currently trying to encrypt and decrypt the same message. I have created a file titled "Untitled.rtf", then ran GPG on the file and ended up with a file that is encrypted, and once I put the original password in, a decrypted file "Untitled 2.rtf" is created.
The problem I am having, is when I am given a public key from somebody, I dont know how to use the key to encrypt data to send. At the moment Im opening a text editor, typing some data in and saving as a .txt file. I then encrypt the file I have just created, but when I open the encrypted file it looks totally different to the public key...like not normal characters - ÕçQ?ãS≠ùh¡¬ßvü%^?Ì‹Y¶j Is this correct or have I done something wrong?
I presume If i send the encrypted message to the owner of the public key, they would save it as a .txt file (presuming I just posted the encrypted message on these forums) and then decrypt using their secret key?
Sorry if its repetitive to people, but ive not seen a complete step by step using GPG Keychain Access and have some holes in my knowledge.
Below is my public key, could someone please send me an encrypted message please :)
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG/MacGPG2 v2.0.20 (Darwin)
Comment: GPGTools - https://gpgtools.org
mQENBFIdpXwBCADCbaphhJQNOGT0Fz4oa35RqZ8DPiOCdJYjPuIWUXjoxer4FCW+
g8olEuYsOQ3I7NFT3hnPRc3QyADSJ8Enf53kROwwkxl9WvY7CPCIjJ1kMUDtiG7/
3SteY7GFF/cIp9Jood6/o2MmAOoKAE939QXBvYlMRwogZ9r3Z/BhFLrTEX35/XXY
BHhRZrm7q8fvYUihLbDQO8TNsoHJBVklAw+wia6/S6mArv52PuXPlSCvh2kcX/xs
gHY0G58mFYyV98ZuWKDzJHvTzDM+FBFEm/uZHXZ2PAIP/slGfnu+2qAv025QrSy8
O5cSEBMJZGYuB6fq+NexvURvg5pA4t63sL4pABEBAAG0KlBhYmxvIEVzY29iYXIg
PHBhYm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+pVfElwle+TBZqdzzaDUb7H42nqPuWuY4NWyD32dowB+X20UquDK
uqFlwJp0Er84YDPlN2StyVVNqm887vCFRaeYX39/2C+gkiB/Ac4uRUZjlOA4y/ez
6KbiV2sKMEXZ6k6B83UXiN/iFy5FCT4kvuVXXjfslUigRS0kglrbOQY1hlwUVgaf
gyOOpTXhp4X92u9y0YHP/1L/SCmxOheYj+POJdQoWAZRIj5YpuKL8QYrJ/pk7AXE
L6b/fm3JmXG1rRQho0PSWgHBHqoQgn6oWT+V8W1ErpbQuurqZFsjUOO+6AIEAGIE
IG5wnlxDrz5F14k/bZlUC8O4NMHmefdx2jd6rA0yoa8Db1cm1gGqXhMnMdMdIY9L
4YTe5RT3h5qMGA==
=FA/e
-----END PGP MESSAGE-----
-
I don't know mac and so didn't read your whole post, but this is where we do this:
http://dkn255hz262ypmii.onion/index.php?topic=107219.0
cross-post there if you don't get a good reponse, or better yet, go have a search. Pick any 5-page range on that thread and you're bound to have all your questions answered.
I imported your key no problem. If any of the info attached to it has anything to do with you in real life, you're best to delete it and start again anonymously imho.
I'll post a message there for you anyways...my key's in my sig, message to you is here:
http://dkn255hz262ypmii.onion/index.php?topic=107219.msg1498172#msg1498172
cheers
[edit: I read the full post and can't answer your questions, but I did post it in the above mentioned post on the pgp thread.
-
Yeah I finally got it to work, ill go over some of the holes in my knowledge here so if anybody else is unsure, hopefully it will make things easier for you.
First of all, for mac users, make sure when adding the services, the GPG ones are checked under Text, and not just Files and Folders (in the Services preferences). This allows you to highlight text then right click and go to services to either encrypt or decrypt. This works on Chrome and Text editors, doesnt seem to work with Tor.
You dont need to create any files at all. Simply create a PGP key, which allows you to give your public key to others (so they can send you encrypted messages). Once you have created the sec/pub key, right click it in the main GPG Keychain Access window and click copy. This allows you to paste your public key anywhere :)
When someone sends you a message, copy the text and paste into a text editor. Highlight all of the text and right click then Services and then Decrypt. You should then see the plain text of the encrypted message from the sender.
If you want to send a message to someone via their public PGP, then copy their public key to a text editor, highlight it all and then right click and then go to Services and import key.
Once you have done this, you can create an encrypted message that only the holder of the public key can decrypt. Open a text editor and type your desired message, highlight it all (starting to see a pattern?) right click and Services, then Encrypt. You will be asked which key you want to encrypt it with and then be presented with the encrypted message. Copy this and paste anywhere you want as only the holder of the secret key to match the public will be able to decrypt.
Hope this has cleared a few questions you may have. If you want to test it out, my public key is at the bottom of the first post of this thread, feel free to PM me a message, and dont forget to put your public key if you want me to send you an encrypted message for you.
If any of the information is incorrect in this thread, please correct it :)
-
Yep you got it, so for OSX all you do is:
1) Download and Install GPGTools
2) Go into System Preferences > Keyboard > Services and make sure all the openPGP boxes are ticked (really important and the part that confuses most if not done)
3) Copy and paste the desired Vendor PGP into a text file, open GPGTools and import that text file.
4) Open TextEditor, type your message / address, highlight it, right click (or old OSX equivalent) and select services > Encrypt
5) Select your vendor key from the list
6) Copy and paste the new generated PGP back.
SIMPLES, well kinda ;)
-
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.12 (MingW32)
hQEMA/5qjG3I5I74AQf/UnnHIbl655N3dQOuYKm+EdMkZxhr80jW20FklK8CIAPw
RUta7gnDwkSx58UmDUmqvazwePSZXlzbOmkLrCKNJDQv5vqYb+uC3j/Uh7lcJyDc
vWgMGLMXLbvD/2nNgMENXT1VUzXkbRpWLj9aWKc4ms0xe/1ZecerQN0Zudb1f2yl
MNP/+q6apmIRzISxjbCSYuvPZYgA6P+bpw6QiYDX2DrIxcbJ+4vvaAV7x7Nu3806
/3d3c/BJCPL/CF8xjVBE17tUpts0AjLfcHQRc+fvrdurT9pPRfogsZCLeOh7/Oxc
/THZgLrh/skd9tVmBE4T4uxuDO8kvcDfAKhwIMVdLdJtAbgaLYtWiIJaT/eypDwo
quvoduqcq+0FyFBtEy7n2vVh0nUp18PocGv+f0na4gpbWLMlPsGwPbhSQr/n7fu3
/ujFdiUbmA0yEJJFhRaCTX2QRaWzgqOYxJrtwOr8fsDIIWqNVAz8DMxsRbaV+A==
=0qJ6
-----END PGP MESSAGE-----
-
Is GPG save? I dont mean the encryption, maybe somewhere i send an IP or is all offline?
-
This is an offline method, its totally safe. There are web based PGP services, they are simple, but run a risk
-
Thanks Spanky it does help :)
-
@8447948 you've done a really good job of typing a comprehensive guide, something I would have really appreciated when I was first starting out. PGP on a Mac is a bitch. One thing you left out though: at the end when you're ready to encrypt with someone else's key, you need to make sure the "include recipients" box (or something along those lines) is unchecked. If that box is checked, GPG tools will try to make use of it's weird email utility and everything will be messed up. When the person tries to decrypt your message, they'll get an "unknown recipient" error.
-
Aksi, if once you have imported another persons personal key, please make sure 'Add to recipients' is unchecked. From what ive tried, it seems to not work if it is checked...