Hack #42. Encrypt Your Email with Thunderbird

Use strong encryption with Mozilla’s Thunderbird to protect your email from electronic eavesdroppers.

With the growth of the Internet, email has become ubiquitous. You would have to look very hard to find anyone that uses a computer but doesn’t have an email address. However, as with any form of interpersonal communication, certain information shared between parties might be of a sensitive nature. Because of this, it’s a wonder that most email is sent as unencrypted clear-text.

One way to get started easily with encrypted email is to use the Mozilla Foundation’s Thunderbird email client (http://www.mozilla.com/thunderbird/) with the Enigmail extension (http://enigmail.mozdev.org). This extension enables Thunderbird to integrate strong encryption almost seamlessly by using powerful public-key encryption based on the OpenPGP standard.

Of course, the first thing you’ll need to do, if you haven’t already, is install Thunderbird and configure it to access your email account. The next step is to download GnuPG for Windows (http://www.gnupg.org/download/index.html). Once you’ve done that, launch the installer and follow the prompts presented by the installation wizard until it has completed installation.

Then, download the Enigmail extension (http://enigmail.mozdev.org/download.html) by right-clicking and saving it.

After you’ve done that, start Thunderbird, go to the Tools menu, and click Extensions. You should now see a window like the one shown in Figure 3-11.

Click the Install button to open a file-selection dialog. Locate the file you just downloaded and click Open. You’ll be presented with a dialog like the one shown in Figure 3-12.

Click Install Now, and you should see Enigmail listed in the Extensions window.

To load the extension, restart Thunderbird. You should now see a new OpenPGP menu, as shown in Figure 3-13.

Now you need to tell Enigmail where to find the GnuPG installation. Open the OpenPGP menu and choose Preferences. You should now see the dialog box shown in Figure 3-14.

Click the Browse button next to the “GnuPG executable path” item, locate the gpg executable (e.g., C:\Program Files\GNU\GnuPG\gpg.exe), and click OK.

Now, you’ll need to provide Enigmail with a public/private key pair. The public key is what others use to send encrypted email to you. Data encrypted with your public key can only be decrypted with your private key. Likewise, you can sign an email by encrypting it with your private key, so that others can decrypt it only with your public key. Since only you know your private key, this assures the receiver that the email is truly from you.

When using Enigmail you have the choice of importing an existing key pair or generating a new one.

You should now see an OpenPGP menu, as shown in Figure 3-17, when composing messages.

Sign messages by clicking OpenPGP→Sign Message and encrypt messages by clicking OpenPGP→Encrypt Message. Before sending an encrypted message to someone, you’ll need to import that person’s public key into your keyring. You can do this by following the same method for importing your own public and private key pair (i.e., clicking File→Import Keys From File in the key management window). After you’ve imported the public key for the recipient, it will automatically be used for encrypting the message when you send it.

When receiving encrypted mail, all you need to do is click on the message and Thunderbird will prompt you for your private key’s password. After accepting your password, it will display the unencrypted message for you.