How to Encrypt your Gmail Messages with Google Docs

Lately there has been a lot of chatter about email tracking and how government agencies are snooping on email conversations. If you are looking for ways to keep your email private and would not like anyone else to read your confidential Gmail messages (except for the recipient), you should consider encrypting your email before hitting the send button.

There are a couple of browser extensions that help you encrypt Gmail but here we discuss a new and more simple Google Docs based encryption method that works across all browsers and requires no add-ons or apps. You secure your message with a strong password and the recipient will have to enter the same password in order to decrypt your message.

For the technically oriented, our Google Docs based solution encrypts (and decrypts) your email messages using the industry-standard AES algorithm which is implemented in Google Apps Script using SJCL, a JavaScript library for cryptography developed at Stanford.

How to Encrypt Gmail Messages

Sender’s Computer - Encrypt the message before sending

  1. Open Gmail and compose a new email message. Put the recipient’s email address in the “To” field, add a subject (this won’t be encrypted) and put your message in the email body. DO NOT hit the send button, let the message stay in your Gmail drafts folder.
  2. Click here to make a copy of the “Encrypt Gmail” sheet in your Google Drive. Choose Gmail->Initialize and allow the sheet to access your Gmail account.
  3. Pick your Gmail draft from the drop-down, enter a password and hit “Send Mail.”

Encrypted Message in Gmail

The Google Sheet will now encrypt your email message using AES and it gets delivered to the recipient via your Gmail account. Let’s now switch to the recipient’s machine and see how they can decrypt the message.

Recipient’s Computer - Decrypt the encrypted Gmail Message

  1. Open the encrypted Gmail message that just landed in your mailbox, select the body of the email and copy it to your clipboard.
  2. Go to Decrypt Gmail, enter the secret password (that the sender shared with you over a phone call) and paste the encrypted email message. Hit the “Decrypt” button to see the original message.

Encrypting email with Google Docs is easy and the other advantage is that recipients can decrypt the encrypted message using any browser without requiring apps or browser add-ons.

One more thing. When you write a draft message inside Gmail, it is automatically stored on Google’s servers. If you would like to keep Google out of the loop, you can write the message outside Gmail (say inside Notepad) and encrypt it offline before sending the message via Gmail.

You can also use these encrypt and decrypt tools to send confidential messages on other channels like Facebook, Outlook, Yahoo Mail, etc. These tools encrypt & decrypt text inside your browser and none of your data ever leaves the local computer.

Also see: Encrypt your Computer Files

Amit Agarwal

Amit Agarwal

Google Developer Expert, Google Cloud Champion

Amit Agarwal is a Google Developer Expert in Google Workspace and Google Apps Script. He holds an engineering degree in Computer Science (I.I.T.) and is the first professional blogger in India.

Amit has developed several popular Google add-ons including Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory

0

Awards & Titles

Digital Inspiration has won several awards since it's launch in 2004.

Google Developer Expert

Google Developer Expert

Google awarded us the Google Developer Expert award recogizing our work in Google Workspace.

ProductHunt Golden Kitty

ProductHunt Golden Kitty

Our Gmail tool won the Lifehack of the Year award at ProductHunt Golden Kitty Awards in 2017.

Microsoft MVP Alumni

Microsoft MVP Alumni

Microsoft awarded us the Most Valuable Professional (MVP) title for 5 years in a row.

Google Cloud Champion

Google Cloud Champion

Google awarded us the Champion Innovator title recognizing our technical skill and expertise.

Email Newsletter

Sign up for our email newsletter to stay up to date.

We will never send any spam emails. Promise.