WavStagno is a C#.Net (VS2012) project to implement Steganography by hiding a secret text message in Audio file (Wave format) and extracting it back.
Several Steganography algorithms exist that can be used to hide data within existing file and then extracting it back, all of them in the end follow same method, tinkering with Byte streams of both, the target file and the message to be hidden, we've done the same.
Following is the standard structure of WAVE Audio format, from which WavAudio object is constructed and left and right audio channel streams are extracted to hide data.
The StagnoHelper class uses WaveAudio object and stores message stream (using its HideMessage method) into its channel streams starting from the last bit of every 8 bit block of the entire audio channel stream (both left and right), where the first element of the stream contains the quotient and remainder of the message length after dividing it with 32767 (upper limit of short data-type), and remaining elements contain actual message data. Refer to HideMessage method of StagnoHelper class.
The channel streams extracted from WaveAudio object are then traversed in ExtractMessage method of StagnoHelper and whole hiding process reversed and original message is recovered. Refer to ExtractMessage method of StagnoHelper class.
- IDE - Microsoft Visual Studio 2010/2012.
- Language - Visual C#.Net.
- Development OS - Windows 7/8.
WavStagno- Main Namespace.WavStagno.Media- Audio Handling Classes.
