GnuPG encryption plugin for the Geany IDE


This is a plugin for the Geany IDE to provide GnuPG encryption.

Installation

This plugin is distributed with geany-plugins, to install check the documentation of the geany-plugins release.
Like all plugins GeanyPG can be activated via the Tools > Plugin Manager dialog.

Using GeanyPG

Once the plugin has been activated a new sub-menu named `GeanyPG' will appear in the Tools menu.
This sub-menu contains the following options:

Encryption
To encrypt a file, simply choose Encrypt from the menu. A dialog will open allowing you to select any recipients. At the bottom of the dialog you also have to option to choose a key to sign the text with (Default is None).

When you press Ok, a few things can happen. If you haven't selected any recipients a new dialog will open asking you if you want to use a symmetric cipher. If you choose yes you will be asked for a passphrase that will be used to encrypt the text.

What happens when you have selected one or more recipients, or entered a passphrase for a symmetric cipher, depends on whether any text was selected. If you have selected text, only the selected text will be encrypted, otherwise the whole file will be encrypted.
Of course, if you have chosen to sign the text as well, you will first be asked for the passphrase of the selected private key.

Signing without encrypting
To sign some text without also encrypting it, choose Sign from the menu. You will be asked which private key you want to use and to enter the passphrase for that key.
Like when encrypting the text, if you have selected anything, only the selected text will be signed. Otherwise the whole file will be signed.

Decrypting and Verifying
To decrypt a file or verify an inline signature just select the GPG code and choose Decrypt / Verify from the menu. When decrypting you will of course be asked to enter a passphrase.

Verifying detached signatures
To verify a detached signature choose the last option from the menu. A dialog will open where you can select a .sig or .asc file with a detached signature.

Development

You can checkout the current source code from the git repository at GitHub.com.

Get the code from:

git checkout https://github.com/geany/geany-plugins.git

If you want to create a patch, please respect the license of GeanyPG as well as intellectual property of third parties. Patches that should be included to the default distribution must be licensed under the same conditions as GeanyPG by the copyright owner (GPL2+).

Known issues

At the moment, the use of pinentry is only supported on unix-like systems. On Windows gpg-agent has to be used.

For more recent information all reported issues will be tracked at https://github.com/geany/geany-plugins/issues

License

GeanyPG and all its parts is distributed under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. A copy of this license can be found in the file COPYING included with the source code of this program. If not, you will be able to get a copy by contacting the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Bugs, questions

If you found any bugs or want to provide a patch, please contact Hans Alves (alves(dot)h88(at)gmail(dot)com).