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
- 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.
- 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.
- Pick your Gmail draft from the drop-down, enter a password and hit “Send Mail.”
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
- Open the encrypted Gmail message that just landed in your mailbox, select the body of the email and copy it to your clipboard.
- 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
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