Just as you can encrypt network transmissions between Linux systems using OpenSSH, you can also use encryption to protect files in the Linux file system. There are a wide variety of tools you can use to do this. Some are open source; others are proprietary. For your Linux+/LPIC-1 exam, you need to know how to use the open source GNU Privacy Guard (GPG) utility to encrypt files. Therefore, that’s the tool we will use here. We’ll discuss the following:
• How GPG works
• Using GPG to encrypt files
Let’s begin by discussing how GPG works.
Gnu Privacy Guard (GPG) is an open source implementation of the OpenPGP standard (RFC 4880). It allows you to encrypt and digitally sign your data and communications. For example, ...