freeCodeCamp/guide/english/gnupg/index.md

1.1 KiB

title
GnuPG

Gnu Privacy Guard (GnuPG) is a free software implementation of the OpenPGP Standard. Most people use GnuPG or GPG to encrypt and sign files and messages while some also use it for Secure Shell (SSH) authentication and signing their Git commits and tags.

Installation

Linux

GnuPG is part of Debian. To install on Debian or its derivatives:

sudo apt install gnupg

For non-Debian Linux distributions, consult the appropriate guide for the distro of your choice.

macOS

To install GnuPG on a Mac, you can use Homebrew:

brew install gnupg

Windows

To install GnuPG on Windows, you can download the Gpg4win Installer.

Generating keys

Before you can start using GPG, you need to first generate a key pair. To do so, key in the command in your terminal or command prompt:

gpg --gen-key

Follow the prompts by entering your name, email, and passphrase and you are done. Congratulations!

Resources