The security of communications—and by extension, information—constitutes one of the most important yet least addressed issues in society. A viable response to the lack of privacy in email communications is the use of the PGP (Pretty Good Privacy) encryption method, developed by Phil Zimmermann in 1991. Since then until today, the PGP system has been refined and developed, even being implemented by major email service providers through Open Source initiatives such as Mailvelope.

mailvelope

Mailvelope is a browser extension for Chrome and Firefox used to manage PGP public and private keys on major email providers, specifically Gmail, Outlook.com, and Yahoo Mail!

Email encryption is an uncommon but increasingly necessary practice due to the economic value of content. Information professionals must be able to use secure communication methods to share cutting-edge, original, and unpublished works, research, reports, data files, ideas, and scientific discussions. Otherwise, there is a risk that third parties may exploit this information, leading to the loss of developed competitive advantages and causing irreparable harm. Although good faith is assumed in companies managing our emails, under slogans such as “Don’t be evil,” cases like that of Edward Snowden have revealed practices that raise concerns about the security and privacy of even the most personal matters—and consequently, also of our scientific and technical output.

How Mailvelope Works

1. Installing Mailvelope

  1. Install the Mailvelope plugin for Chrome or the Mailvelope plugin for Firefox.

2. Generate PGP Keys

The PGP system is based on creating key pairs for each email address to be used. A first Public Key that is shared with all potential recipients of encrypted messages, and a second Private Key that is not shared and is used both to encrypt and decrypt messages sent or received.

mailvelope-00

Figure 1. Key generation includes the key name or owner's name, a usable email address, and the password field

In Mailvelope, key generation is a very straightforward process. From the Mailvelope management tab, the option «Generate Keys» allows the user to assign a name to the key pair, specify an email address (in this example, Gmail), and set a master password for the keys. This last step is essential to achieve the highest possible security guarantee. Passwords should be long phrases incorporating spaces, accents, numbers, or special characters. The complexity and length of the password will impede decryption attempts via brute-force algorithms, providing a time margin of weeks or months before the message could potentially be decrypted.

3. Sharing Keys

The user must be aware that private keys are never shared

mailvelope-02

Figure 2. Process of exporting a PGP public key. Note that the key being exported is public, not private.

To export a public key, select the key management option, show keys, click on the desired key, go to the export tab, and finally download the key.

4. Importing keys from our correspondents

Importing the public keys of your contacts is available through the key management option and can be done in two ways: either by copying and pasting the interlocutor’s public key code or by importing the accompanying «.asc» file.

mailvelope-03

Figure 3. The public key of your contacts is necessary to decrypt their communications.

5. Encrypting a Message from Gmail

The integration of Mailvelope into Gmail is discreet and effective. When composing an encrypted message, the user clicks the “Compose” button, and automatically an icon appears overlaid on the message body, launching a Pop-Up window to compose and encrypt the email securely without any intervention from Gmail. This aspect is extremely important, as otherwise the information would be compromised. Once the message is composed, it can be “encrypted” and “signed”. Encrypting the message requires having the recipient’s public key. This enables encoding the message so that only the intended recipient can open and decrypt it. Meanwhile, signing the message verifies that the sender is indeed who they claim to be, thereby confirming their identity. In fact, when signing a message, Mailvelope requires the password for the key to generate the encrypted signature header, making identity spoofing nearly impossible.

Gmail email screen showing the Mailvelope icon (right), which opens a message editing window (left) with options to encrypt and sign

Figure 4. Gmail email screen showing the Mailvelope icon (right), which opens a message editing window (left) with options to encrypt and sign

6. Decrypting Messages from Gmail

If the previous steps have been followed correctly, the recipient will be able to decode the messages by entering their password to execute the decryption process, obtaining the final message as a result.

Decrypt the encrypted message

Figure 5. Decrypt the encrypted message

References

  1. How to use PGP encryption with Gmail, Yahoo!, and other webmail accounts via Mailvelope. http://www.hackplayers.com/2013/11/como-utilizar-cifrado-pgp-con-gmail-yahoo-y-otros.html
  2. How to encrypt everything: email. http://www.genbeta.com/correo/como-cifrarlo-todo-correo-electronico
  3. What it is and how to use PGP in your daily life. https://www.fayerwayer.com/2015/03/que-es-y-como-usar-pgp-en-tu-vida-diaria