End-to-end encryption. What is it and how does it work?

What is end-to-end encryption?

End-to-end encryption is a method of securely transmitting data in a way that only the sender and recipient can read the actual message by encrypting it on the sender’s end and decrypting it on the recipient’s.

Any third party, like a malicious actor, that tries to access or tamper with the data as it travels from one end (sender) to the other (recipient) will be unable to do so without the right decryption key.

End-to-end email encryption provides the highest level of confidentiality and protection to your email communication. Read this article to learn how it works.

How does end-to-end encryption work?

end-to-end email encryption

Source: https://en.wikipedia.org/wiki/Pretty_Good_Privacy

End-to-end encryption requires both the sender and recipient to have a pair of cryptographic keys. There is one private key and one public key. The sender encrypts the message locally on his device using the recipient’s public key. The recipient decrypts it on his device using his private key. This method of encryption is called Asymmetric encryption.

The process works as follows:

  1. Alice (sender) and Bob (recipient) both generate their key pairs and share their public keys with each other. They keep their private key ‘private’ as the name suggests. You only need to generate your keys once when creating an encrypted email account.
  2. Alice encrypts the message using Bob’s public key in her device and sends it to Bob.
  3. Bob receives the encrypted message on his device and decrypts it using his private key.

With real end-to-end encryption, also called “client-side encryption” or “zero access”, encryption and decryption happen on the users’ devices. End-to-end encryption thus prevents any intermediary from reading user data and guarantees the confidentiality of the data much more than SSL/TLS or STARTTLS.

How to send an end-to-end encrypted email using Mailfence

end to end encryption

Yes, Mailfence makes end-to-end encryption super easy on email!  No plugins, no key management in separate key-stores,…

It is just like any other webmail service, but secure and private. Easy, fast and very convenient for everyone who values their privacy.

Advantages of E2EE

End-to-end encryption has the following advantages:

  • Privacy: Only the intended recipient that  holds the private key is able to decrypt the message. E2EE protects you among other things, from threats of hackers taking hold of the data transfer by eavesdropping on Wi-Fi/or other channels.
  • More security and authenticity: End-to-end encryption can be combined with digital signatures. A digitally signed and encrypted email proves that the sender is indeed the ‘true’ sender of the message. It also protects against tampering with the message in transit.
  • Say NO to mass-surveillance : End-to-end encryption protects your messages against mass-surveillance. Check the strong case for encryption post by one of the Mailfence founders.

What does it protect you against?

E2EE will protect your data from two cybersecurity threats:

  1. Prying eyes. Since only the sender has the original (unencrypted) and the intended recipient has the private key to decrypt the message any third party that manages to intercept the message in transit will not be able to read the encrypted message (it will be illegible).
  2. Altering the message. Even if someone intercepts the message, they still can’t tamper with it without discovery, as E2EE protects against such attempts.

What does it not protect?

Despite end-to-end encryption being considered one of the most powerful cybersecurity solutions, there are still things that it cannot protect.

These include:

  1. Compromised end-points. End-to-end encryption is only as strong as its end-points. If, for instance, the sender’s device is compromised, the hacker can get the original message.
  2. Metadata. Metadata is the information about the message, such as the date and time of sending. Unfortunately, E2EE does not protect metadata, thus giving the malicious actor some valuable information they could potentially use.

How is end-to-end encryption different from encryption in transit?

For a better understanding of what end-to-end encryption is, we must first understand what is not end-to-end encryption and how E2EE differs from encryption in transit.

  • SSL/TLS – When you visit https://www.gmail.com, the HTTPS in front of the URL denotes that SSL/TLS protocol has been used to encrypt the data transferred between your computer and the Gmail servers. This protocol is much more secure than HTTP (without “S” = not secure). Most websites adopted SSL/TLS to protect against malicious intermediaries. The downside to relying solely on HTTPS, is that data is only encrypted between your device and the Gmail servers. Gmail has the keys to decrypt that data.
  • SMTP over TLS (STARTTLS) – Lets take the case of a Yahoo mail user that sends an email to a Gmail users.  When you send an email with SMTP over TLS between these two mail services, the message between the two servers is encrypted. Consequently on a condition that the recipient server also supports SMTP over TLS (which Gmail does). Using STARTTLS is a good practice, however several attempts are made to ‘portray’ this as the ultimate email security and privacy solution. In our opinion STARTTLS is not good enough since both the sending and receiving server have access to the message content. Moreover, not all receiving servers support STARTTLS.

Conclusion

End-to-end encryption has existed for decades. So why isn’t it more common? There are a few reasons:

First, mainstream providers do not support end-to-end encryption as their business model often depends on advertising and selling user data. Secondly, our governments want to be able to keep a check on our communications (read why backdoor encryption does not work). Last but not the least, end-to-end encryption has traditionally been hard to implement and difficult to use and understand.

Yet, despite all these, end-to-end encryption remains the most secure way to protect your sensitive data from prying eyes and malicious actors and Mailfence is there to help you out!

See also:

Secure email: Why end-to-end encryption is at the heart of itOpenPGP encryption best practices, Symmetric vs asymmetric encryption, Password encrypted messages

At Mailfence, we have designed an easy to use end-to-end encrypted email.  We believe that users have an absolute and irrevocable right to internet privacy.  In case you want to leave either Yahoo Mail, Gmail or Outlook, that do not offer end-to-end encryption.

Join the fight for online privacy and digital freedom.

Get your secure email

Don’t forget to follow us on twitter/reddit and keep yourself posted at all times.

– Mailfence Team

You may also like...