Skip to content

Latest commit

 

History

History
61 lines (45 loc) · 2.09 KB

File metadata and controls

61 lines (45 loc) · 2.09 KB

PGP

PGP is a suite of encryption tools that allows you to send and receive messages securely. You may use it to communicate via email, IM or other communication tool.

Installation

  1. Visit https://gpgtools.org/;
  2. Download the latest .dmg archive;
  3. Install GPG Suite on your machine.
Alternative installation via Homebrew
brew install --cask gpg-suite
Verify installation
  1. Open a browser.
  2. Write some text in a textbox.
  3. Select and right click on the text.
  4. You should be able to see several OpenPGP options under the Services menu.

Keyboard shortcuts

  1. Go to System Preferences > Keyboard > Shortcuts;
  2. Select Services from the left pane;
  3. Scroll down to the Text section. Locate entries starting with "OpenPGP:". Go through each entry, unchecking and deleting its keyboard shortcut.
  4. Set four new shortcuts, i.e.
Entry Shortcut
OpenPGP: Decrypt Selection ⌃⌥⌘-
OpenPGP: Encrypt Selection ⌃⌥⌘-
OpenPGP: Sign Selection ⌃⌥⌘[
OpenPGP: Verify Signature of Selection ⌃⌥⌘[

Create new PGP Key pair

  1. Open the GPG Keychain app that should be already installed in your system;
  2. Click New from the top menu;
  3. Type in your full name and email address.
  4. Check the Upload public key option;
  5. Enter a secure passphrase twice (x2) under Advanced options;
  6. Hit Generate Key.

Export a PGP Key

  1. Open the GPG Keychain app;
  2. Select the key you want to export - it should now be highlighted;
  3. Click Export from the top menu;
  4. Make sure to check the Include secret key in exported file option, assuming you want to export a public/private key pair;
  5. Select the directory to save the exported key;
  6. Hit Save.

Import a PGP Key

  1. Open the GPG Keychain app;
  2. Click Import from the top menu;
  3. Select the file you want to import from your filesystem - it should normally end in .asc;
  4. Hit Open.