GNU Privacy Guard (GnuPG or GPG) is an encryption software, which is a substitute for PGP encryption software to meet GPL. GnuPG is designed according to the technical standard of OpenPGP formulated by IETF. GnuPG is a software for encryption, digital signature and asymmetric key pair generation.
Install GPG first
Sudo apt installs gnupg.
gpg - gen-key
Real name: enter the user name.
Email Address: Enter an email address.
Change your name, email or other means? O
Check it for the last time
Gpg-list-key