GPG plugin for Sublime Text
A reincarnation of https://github.com/crowsonkb/SublimeGPG, which was closed by its author due security risks. In few words, you should switch off auto updates and check all source code of software you use, otherwise you have to blame only yourself.
This plug-in targets and is tested against the latest Build of Sublime Text.
This plugin adds commands to decrypt, encrypt, sign, and authenticate documents. It requires a working copy of GPG with a key already generated. (If you haven't generated a key yet, see this mini-HOWTO.) If the gpg binary is not in your $PATH
, you will have to set its location in Preferences → Package Settings → GPG.
On OS X, I recommend installing GPG using the Homebrew package manager: after installing Homebrew, run brew install gpg
.
Using Package Control is not required, but recommended as it keeps your packages (with their dependencies) up-to-date!
- Install Package Control
- Close and reopen Sublime Text after having installed Package Control.
- Open the Command Palette (
Tools > Command Palette
). - Choose
Package Control: Install Package
. - Search for
GPG
on Package Control and select to install.
In case if this plugin is not available with default Package Control
channel, you can add repository manually by Package Control: Add Repository
https://raw.githubusercontent.com/dmitrievav/sublime_gpg/master/repository.json
Download the zip file from the latest release page and unpack its contents to a subfolder named GPG
in ../Sublime Text 3/Data/Packages
where Sublime Text 3 is installed.
The plug-in's actions are available via the main menu (Tools → GPG
) or the Command Palette (GPG: ...
).
The two main actions of the plug-in are also assigned the following default key bindings:
- Decrypt: "super+g,d"
- Encrypt: "super+g,e"
- Signatures can only be created with the default key (the first key in the secret key ring, or else the default specified in
gpg.conf
).
You can use the main menu or the Command Palette to customize the GPG plug-in's preferences.