Using GPG to encrypt/decrypt files or messages
This post is showing how to use GPG key encryption on Linux environment.
Installing GnuPG with APT package manager
$ apt install gnupgListing keys
$ gpg --list-secret-keys # listing private keys
$ gpg --list-keys # listing public keysGenerating key pair:
# Generating a key pair (full interactive)
$ gpg --full-generate-key
# Generating a key pair (quick interactive)
$ gpg --gen-keyExporting/Importing keys:
Encrypt & Decrypt
Last updated