Several months ago I wrote a series on DIY email encryption. One of the steps in this process was installing Gnu Privacy Guard (GPG). This is the free, open-source program that actually manages the cryptographic functions of encrypting your emails. Fortunately, if you have GPG installed, you also have a powerful tool for encrypting files locally. Mac GPG file encryption is really simple to use and provides really strong protection for your data-at-rest.
Encrypting with Mac GPG File Encryption
There are mulitple ways to encrypt a file with GPG, including using your private key. This post is going to focus on the simplest and easiest method: symmetric key encryption.
Gnupg Free Download
Step 1: Install GPG. The first step (if you don’t already have it) is to download and install GPG. If you run Linux you probably already have it built-in. If you use Windows, GPG4Win from https://www.gpg4win.org/. If you are on Mac, download the GPG Suite from https://gpgtools.org/.
Step 2: Open Terminal. GPG doesn’t come with a front-end. This means there is not graphical user interface (GUI). All functions are run from the Terminal. Again, if you are on Linux you are alreadly familiar with using Terminal. If you are a Mac user you may need some help opening the Terminal. Open Launchpad and click “Other”. Click “Terminal”. Launchpad will close and a Terminal window will open.
- Fortunately, the GPG Suite also installs the necessary command line tools to make this happen. I'm going to show you how to generate a new GPG keypair and then export them from the macOS terminal.
- Trusted Mac download GPG Suite 2020.1. Virus-free and 100% clean download. Get GPG Suite alternative downloads.
Step 3: Encrypt. Once the Terminal is open, enter the following command (NOTE: the file pathway in italics is my example. Replace this with the file that you wish to encrypt):
Download Gpg Machine
Kleopatra is a certificate manager and GUI for GnuPG. The software stores your OpenPGP certificates and keys. It is available for Windows and Linux. In association with the KMail email client, you can also take advantages of the cryptographical features for your communication via email. Developer/Publisher: KDE; License: Open Source. Current and all previous Gpg4win installers as well as signatures and corresponding source code packages are available under: files.gpg4win.org. In the change history you will find information about the most relevant changes and which version of the products each of the releases contained. Also, you will find direct download link.
- gpg -c C:UsersadminDekstopexample file.pdf
Download Gpg Mac Os
Entering the file pathway can be simplified through the following procedure:
- Type “gpg -c “,
- The drag the file you want encrypted onto the Terminal window. The file pathway will automatically populate.
Next, press Enter. You will be prompted to enter a password twice. When you have entered the password, an encrypted copy of the file will be placed in the same folder as the original.
Decrypting With Mac GPG File Encryption
To decrypt a file protected by GPG, simply double-click the file. You will be prompted to enter your password. An unencrypted version of the file will be written to the same directory location as the encrypted version.
GPG offers extremely robust file encryption in an easy-to-use package. I also like that GPG is dual-use; if you’re running your own encrypted email, you already have it installed.
If you enjoyed this article and would like exclusive content, sign up for the Operational-Security Newsletter.