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.
- Visit https://gpgtools.org/;
- Download the latest .dmg archive;
- Install GPG Suite on your machine.
brew install --cask gpg-suite- Open a browser.
- Write some text in a textbox.
- Select and right click on the text.
- You should be able to see several OpenPGP options under the Services menu.
- Go to System Preferences > Keyboard > Shortcuts;
- Select Services from the left pane;
- Scroll down to the Text section. Locate entries starting with "OpenPGP:". Go through each entry, unchecking and deleting its keyboard shortcut.
- Set four new shortcuts, i.e.
| Entry | Shortcut |
|---|---|
| OpenPGP: Decrypt Selection | ⌃⌥⌘- |
| OpenPGP: Encrypt Selection | ⌃⌥⌘- |
| OpenPGP: Sign Selection | ⌃⌥⌘[ |
| OpenPGP: Verify Signature of Selection | ⌃⌥⌘[ |
- Open the GPG Keychain app that should be already installed in your system;
- Click New from the top menu;
- Type in your full name and email address.
- Check the Upload public key option;
- Enter a secure passphrase twice (x2) under Advanced options;
- Hit Generate Key.
- Open the GPG Keychain app;
- Select the key you want to export - it should now be highlighted;
- Click Export from the top menu;
- Make sure to check the Include secret key in exported file option, assuming you want to export a public/private key pair;
- Select the directory to save the exported key;
- Hit Save.
- Open the GPG Keychain app;
- Click Import from the top menu;
- Select the file you want to import from your filesystem - it should normally end in
.asc; - Hit Open.