🔒GPG
Theory
gpg is the OpenPGP (Pretty Good Privacy) part of the GNU Privacy Guard (GnuPG). It is a tool to provide digital encryption and signing services using the OpenPGP standard. gpg features complete key management and all the bells and whistles you would expect from a full OpenPGP implementation.
The gpg utility has a lot of options, but fortunately for us, encrypting and decrypting are easy to do and only require that you know three options for quick use: Create or encrypt (-c
), decrypt (-d
), and extract and decrypt (no option).
Practical
Encrypt a file
The quick method for encrypting a file is to issue the gpg
command with the -c
(create) option:
Decrypt a file
If you want to extract the original file while decrypting it, strangely enough, you issue the gpg
command with no options.
Decrypt using key
REFERENCES
Last updated