Sunday, November 30, 2014

Sending secret text messages as audio files

So today's post will be on how to encode a picture as a sound. The topic came up, because my seminar topic was on cryptography, so I was wondering what else could I do with it.

This will let you encrypt secret messages as audio files, so a hacker won't be able to understand there's a secret message embedded within the audio file (if somehow intercepted).
  
So there's basically two things you need.

The sending side will need a software called Coagula. This software actually lets you draw a picture with the help of a paint brush.


So this is my picture, after I drew it with Coagula. Now click "save as sound" to save the bmp file into a WAV file. 

On seeing the WAV file, it doesn't look suspicious and you can even play it using your media player and listen to it (though it sounds like a dying cat). It'll be small in size which makes it perfect for emails, etc.

Next, the receiver side will need a software called "Sonic Visualizer".
On opening the WAV file on sonic visualizer, it looks like an ordinary audio file.  


To encrypt the message, go to "layer" and add a "Spectrogram layer". You will be able to see the original encoded text.

Pretty cool, right? 

Links: 
Coagula: http://www.sonicspot.com/coagula/coagula.html
Sonic Visualizer: http://www.sonicvisualiser.org/download.html