How to Encrypt your Gmail Messages with Google Docs

Published in: encryption - Gmail

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

📮  Subscribe to our Email Newsletter for Google tips and tutorials!
Published in: encryption - Gmail

Looking for something? Find here!

Meet the Author

Web Geek, Google Developer Expert
Amit Agarwal

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. He is the developer of Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory

Get in touch

Google Add-ons

Do more with your Gmail and GSuite account

We build bespoke solutions that use the capabilities and the features of Google Workspace for automating business processes and driving work productivity.

  1. Mail Merge with Attachments
    Send personalized email to your Google Contact with a Google Sheet and Gmail
  2. Save Emails and Attachments
    Download email messages and file attachments from Gmail to your Google Drive
  3. Google Forms Email Notifications
    Send email notifications to multiple people when a new Google Form is submitted
  4. Document Studio
    Create beautiful pixel perfect documents merging data from Google Sheets and Google Forms
  5. Creator Studio for Google Slides
    Turn your Google Slides presentations into animated GIFs and videos for uploading to YouTube