GPG Encryption

Posted by zbrom on June 25, 2021 · 1 min read

GnuPG is a complete and free implementation of the OpenPGP standard as defined by RFC4880. Here is a basic guide how to setup GPG encryption on Arch.

Generating a New Key:

Install gnupg:

pacman -S gnupg

Create a key pair:

gpg --full-gen-key

Exporting Public Key:

Export your public key to share it with others.

gpg --export --armor --output publickey.asc user-id

Importing Public or Private Keys:

This command can be utilized to import a public or private key.

gpg --import key.asc

Backup Private Key:

gpg --export-secret-keys --armor --output privkey.asc user-id

Additional Information:

GNOME Keyring can be managed with Seahorse. Package: seahorse