Watch FIFA World Cup 2026™ LIVE, FREE and EXCLUSIVE

Code-a-cola: how to hide secret messages using fizzy drinks

Secret messages

We've come a long way since lemon juice. Source: Getty Images

Mark Lorch, University of Hull

Next time you see someone spilling a drink in a bar, you could actually be witnessing a spy secretly decoding an encrypted message. This might sound like something from a Bond movie. But a team from Israel has used some rather niffy chemistry to come up with a way to use common chemicals such as cola as the encryption key to code and decode hidden messages.

Spies have long tried to make coded or encrypted messages even more secure by hiding them in something seemingly innocuous, from the secret wax writing tablet devised by Demaratus, King of Sparta, to the “lemon juice spies” of World War I. This practice is known as steganography.

In the case of lemon juice invisible ink, the chemistry is quite simple. Write the message in juice and when it dries the text disappears. But if you heat it up, the acids from the lemon react with the sugars to caramelise them, turning them brown. And, hey presto, the message is revealed.

image-20160503-19828-1g3t053.jpg

The Israeli team of researchers from the Weizmann Institute of Science have continued this tradition with some chemistry that is ingenious enough for any spy movie. Their method, published in the journal Nature Communications, is complex to devise but simple to use, and combines encryption, steganography and password protection.

It all rests on fluorescent molecules that can be made to give off different wavelengths of light when they come into contact with certain chemicals. Measuring the wavelengths gives you a code that you then need to decrypt to read the message. The scientists built the molecules that contain the code in their lab but the chemicals could be familiar products such as a particular cola, instant coffee or mouthwash.

How it works

To encode the message, you use a simple cipher, where each letter is replaced with another symbol, or in this case with a set of numbers. So if your message was “open sesame”, to encode the word “open” you could use:

O = 4350

P = 4650

E = 1350

N = 4050

You also assign a wavelength of light (measured in nanometers, nm) to each letter.

O = 500nm

P = 520nm

E = 540nm

N = 560nm

You then put the molecule in your chosen chemical, for example cola, and measure the amount of light that it gives off at each wavelength. (This can be done with a simple and cheap hand-held device, although 007 would probably have the function built into his watch.)

Fluorescence is measured with arbitrary units, so to get the same numbers for both the coding and decoding instruments they must be set up the same way, which actually adds another layer of security. Adding the value of this measurement to the cipher numbers gives you your final code. So if you measure 689 at 500nm, you add this number to 4350, giving a final value of 5039 for the letter O.

image-20160503-19856-1qhldxm.jpg

From keyboard to chemicals Margulies et al. Nature Communications

Finally, you transmit the numbers and the fluorescent molecule to whomever you want to read your message. The molecule could be concealed by drying it onto a letter, for example. All the recipient would need to do is place the letter in the correct brand of cola and measure the light released to decode the message. The encryption is specific to the chemical you’ve used to create it. So if you tried to decode the message using mouthwash rather than cola, you’d get the wrong values and the resulting letters wouldn’t make any sense.

Added protection

The Israeli team have also included a neat way to password-protect the message by making the light given off by the molecule dependent on the order in which you add other chemicals to it. So you can get a different encryption key by adding mouthwash then cola rather than the other way round.

The whole system may seem rather complex, but the research team have tested it with untrained volunteers and shown that with a few minutes instruction it is really quite easy to use.

So look a bit closer next time you notice someone spill their coffee on some papers (especially if they have a high tech watch on) … they might just be decoding a secret message.

Mark Lorch is a member of the Royal Society of Chemistry.

Tune in to #TheFeedSBS at 7.30pm Monday - Friday on SBS 2, stream live, or follow us on FacebookTwitterInstagram,Tumblr, or Vine.


Through award winning storytelling, The Feed continues to break new ground with its compelling mix of current affairs, comedy, profiles and investigations. See Different. Know Better. Laugh Harder. Read more about The Feed

Have a story or comment? Contact Us


5 min read

Published

Updated

By Mark Lorch

Source: The Conversation



Share this with family and friends


Get SBS News daily and direct to your Inbox

Sign up now for the latest news from Australia and around the world direct to your inbox.

By subscribing, you agree to SBS’s terms of service and privacy policy including receiving email updates from SBS.

Follow SBS News

Download our apps

Listen to our podcasts

Get the latest with our News podcasts on your favourite podcast apps.

Watch on SBS

SBS World News

Take a global view with Australia's most comprehensive world news service

Watch now

Watch the latest news videos from Australia and across the world

Code-a-cola: how to hide secret messages using fizzy drinks | SBS The Feed