This is the basic guide for using PGP in OS X which is actually version 10 of the Apple operating system. The OS in consideration is OS X 10.9 Mavericks, but it should work in all the other versions. As for the tool itself, we will be using the GPG Suite Beta 5 version. You might be aware it is not recommended for Darknet related issues on OS X but this tutorial or guide is not to go over those discussions.
Part 1- Installing The Software
Like it is mentioned above, the guide will discuss GPG Suite Beta 5. If you want to look at the code and are curious you can do so here.
- Go to the URL (uniform resource locator) https://gpgtools.org and download the GPG Suite Beta 5 version from there.
- After the download is finished open the file. After that, you will see a screen having an install and an uninstall button on it. Double click on the install button.
- Go as per the installation instruction and if installed properly you will come across this screen. Once you have finished the procedure, close the window.
Part 2- Creating Your PairKey
Although this is a complicated process, using a GPG suite makes it a lot simpler and lucid. For this process of creating keypair, we will be using a 4096-bit length for encryption.
- Once you open the GPG Keychain, you will come across this window.
- Once you look properly, you will notice a “New” button that appears at the top left corner of the window.
- A pop-up window will appear before you which will ask for your “Full name” and “Email address”. Just below that, you will notice a field called “Advanced Option”. Click on it and set the key length at 4096. Uncheck ‘key expires’. Fill in the username, email address in the spaces that have been allocated and create a secure passphrase. Check the below image about how to go about filling it up. Once you have completed select the “Generate Key”.
- GPG keychain will start generating a key for you. Move the mouse around and open up any random application so that the disk space is utilized. This task will help create entropy for a secure key.
- And after you have done that, you are all set and ready to go.
Part 3- Setting Up the Environment
This is where OS X is unique when compared with other platforms. The suite (PGP in OS X) does not have an option where you might encrypt/decrypt messages, so we have to enable some options.
- Head to the system preference and click on the keyboard option.
- You will view this window. Click on the “Keyboard shortcut” option which appears just beside the “keyboard” button. Then you will see a list that appears on the left side where there is a “Service” label. Scroll down to the right subsection labeled “Text” and then head on to OpenPGP options where you can create keyboard shortcuts. We will untick all the boxes that are under “Text” and remove all the shortcuts. Now we will activate “Decrypt”, “Encrypt” and “Import Key”. You can create your keyboard if you wish and make sure to double-check everything that you do by referring to the picture. Once you have done that, you can close the window.
Part 4- Obtaining Your Public Key
This procedure does not require much effort and is easy to accomplish.
- Open the GPG keychain and choose your key.
- At the top of the toolbar click on the “Export” button (beside the Import label).
- Choose a name and tick the “include secret key in the exported file” box and then click on the “Save” option.
- Open your choice of a text editor and browse it where you have saved it (Key) and then open it.
- You will see the PGP key, copy and paste the key in your market profile so that people will be able to get in touch with you through the key.
Part 5- Obtaining your Private Key
This is also very simple just like the step above it.
- Open the GPG keychain and choose your key.
- At the top of the window, you will see an “Export” label click on it.
- Don’t change the file name, keep it the same way, tick on the “Include secret key in the exported file”, then select the save option.
Make sure that you keep the file in a secure place and do not forget your passphrase because if you lose track then you are in trouble.
Part 6- Importing a Public Key
This step is again very easy to accomplish.
- Locate the key you want to import.
- Copy everything from the start to end [—–BEGIN PGP PUBLIC KEY BLOCK—— to ——END PGP PUBLIC KEY BLOCK—–].
- Paste the entire PGP public key into your text editor, highlight everything. Click the right button of your mouse and select the “Service” label and then head to “OpenPGP: Import key”.
- A window will appear in front of you, confirming the keys have been imported. And then click on the “Ok” button.
- Again open the GPG Keychain just to check the key is there.
Part 7- Importing a Private Key
Importing a Private Key (PGP in OS X) is also very easy to master.
- Open the GPG Keychain and select the “Import” box at the top.
- Browse to where your key is located, then click it and select “Open”. It will contain a .asc file extension.
- You will receive a pop-up window confirming that the key has been imported and then click on the “Close” button.
Part 8- Encrypting a Message
- Open your text editor and write your message.
- Select (Ctrl-A), right-click, select “Services” and choose the “OpenPGP: Encrypt”.
- A window will appear on your screen, select the recipient name, sign it with your key if you want to and then click “Ok”.
- Copy everything and then forward it to the recipient.
Part 9- Decrypting a Message
This is very similar to the process of encrypting.
- Open the text editor and paste the message on it.
- Select (Ctrl-A), right-click, select “Services” and choose the “OpenPGP: Decrypt”.
- A window will appear, where you have to enter your passphrase, then select “Ok”.
- And you will receive your message.
It is not as difficult as you might have thought but it is advisable not to use PGP in OS X for DNM activities due to privacy issues. The tutorial is quite long, no denying the fact because OS X can be a bit of a headache when it comes to running it on a virtual machine.