MGMLaboratory
Back

Menu

01Home
02About Us
03Projects
04Publications
05Member
06Articles
07Contact

Let's Talk

Open in Mail app

Socials

Malang (ID) --:--Privacy PolicyTerms of Service

January 23, 20182 min read

The Hard Part of Chat Privacy Is the KeyThe Hard Part of Chat Privacy Is the Key

Ciphers are standard and fast. Key handling is where a private messaging design is won or lost.

  • Journal
  • Publications

Written by

  • SRShirasaka RenIT & Infrastructure · Student Member

In this article

  1. 01Key handling is the real design surface

Encryption algorithms are rarely the weak point in a private messaging system. They are the part that has been studied, attacked and standardised for decades. The weak point is almost always the key.

A 2018 study on protecting chat content shows this by where it spends its design effort. AES handles the message itself. Almost everything else in the proposal is about making sure the right person, and only the right person, can unlock it.

01/01

Key handling is the real design surface

The proposed system generates a key from sixteen random numbers, then disguises that key with several layers of MD5 hashing tied to private values that live inside the application. Sending a message means sending both the encrypted content and enough information for the recipient to rebuild the key.

Key exchange is the step where most messaging designs are decided. Image: MarcT0K, CC BY 4.0, via Wikimedia Commons.
Fig. 01Key exchange is the step where most messaging designs are decided. Image: MarcT0K, CC BY 4.0, via Wikimedia Commons.

That structure raises questions every messaging product has to answer.

  • Where does the secret live? If the values needed to derive the key are stored inside the app, an attacker who extracts them from one device gains something real.
  • How is the key transported? Any shortcut that sends the key in a recoverable form cancels out the encryption protecting the message.
  • What happens when a device is lost? A design that binds the key to one installation has to say what happens when that installation disappears.
Layered protection, as used in the study prototype. Photo: public domain, via Wikimedia Commons.
Fig. 02Layered protection, as used in the study prototype. Photo: public domain, via Wikimedia Commons.

The performance results are reassuring on this front. On a low spec Android handset, encryption and decryption stayed between a few milliseconds and a few tens of milliseconds for messages up to a thousand characters, well inside what users perceive as instant.

Protected data is only as strong as the key that unlocks it. Photo: public domain, via Wikimedia Commons.
Fig. 03Protected data is only as strong as the key that unlocks it. Photo: public domain, via Wikimedia Commons.

That is the useful takeaway for teams building private communication features. Fast cryptography is available off the shelf. The work that decides whether a feature is genuinely private happens in the design of the key, its storage, and the recovery path.

Source

  1. Wardhono et al. (2018). End-to-End Privacy Protection for Facebook Mobile Chat based on AES with Multi-Layered MD5. International Journal of Interactive Mobile Technologies.

    DOI10.3991/ijim.v12i1.7472 (opens in a new tab)

Next articleLocking a Chat App with AES and Layered Hashing(Keep scrolling)(Read it next)(Loading)