This page is about using GnuPG in Debian. For development work, see the GnuPG packaging team page.

GnuPG logo

GnuPG is a complete and free implementation of the OpenPGP standard. GnuPG allows to encrypt and sign your data and communication, features a versatile key management system as well as access modules for all kinds of public key directories. GnuPG, also known as GPG, is a command line tool with features for easy integration with other applications. A wealth of frontend applications and libraries are available. Version 2 of GnuPG also provides support for S/MIME and Secure Shell (ssh).


As GnuPG is an implementation of the OpenPGP standards, you can get an understanding of the concepts you'll need from the OpenPGP concepts pages on the KDE wiki.

You may also read riseup's best practices document (though as of 2021-05 that guide is now deprecated, and GnuPG default options are recommended).

Getting Started

Integrations with other applications

GnuPG plugin for vim

GnuPG plugin for vim is part of vim-scripts package.

# apt install vim-scripts
$ mkdir ~/.vim/plugin/
$ ln -sf /usr/share/vim-scripts/gnupg ~/.vim/plugin/

Now you can transparently edit .gpg files and manage recipients who has access to the files easily. See /usr/share/vim-scripts/gnupg/ for more details of how to use this plugin.

Advanced Topics