An LSB2 Steganography Encoder which encodes MP3 Audio into PNG Images to be played by The PNG Musician
This is secpnd part of the Steganography Made Fun! toolkit
The toolkit has three parts divided into three repositories:
- Part 1: The TXT Hider
- Part 2: The MP3 Photographer (This Repository)
- Part 3: The PNG Musician
IN\
: This is where you place the JPG and MP3 filesSRC\
: Contains the Steganographically Encoded PNG FilesLICENSE
: GNU GPL v3.0 License for The MP3 PhotographerREADME.md
: Here you are!install_requirements.bat
: Installs the necessary package requirements usingpip
(Requirespip
access inPATH
)The MP3 Photographer.py
: Source Code
- Just let things be where they are (relatively)
- Place the JPG files with
<song_name>.jpg
in the adjacent directory labeledIN\
- Place the MP3 files with
<song_name>.mp3
in the adjacent directory labeledIN\
(Check the Restrictions below) - Run
The MP3 Photographer.py
using the IDE of your choice or via CMD using thepython "The MP3 Photographer.py"
command - Obtain the Steganographically Encoded PNG files in the
SRC\
Directory
Place the Custom PNG files generated by The MP3 Photographer in the SRC\
folder of The PNG Musician folder to play them
Amount of data that can be steganograhically encoded in a particular image is limited. Both The MP3 Photographer and The PNG Musician work on colour images of resolution 1280x720
with the 2 LSB bits in each channel of each pixel holding the MP3 file
Ultimately, the size of MP3 file is restricted to 1280 x 720 x 3 x 2 = 5,529,600 bits
or 675 kB
I use Audacity to limit the MP3 file sizes into the restriction limits with the following settings:
Maximum Duration | 1 minute |
---|---|
Bit Rate Mode | Preset |
Quality | Medium, 145-185 kbps |
Channel Mode | Force Export to Mono |
Metadata | Cleared |
You can install the required packages manually or by running the install_requirements.bat
. You can always create a virtual environment to prevent your version critical installations from being modified (You need to switch to the virtual environment before running the batch file)
I do not own any rights to the images or music in the IN\
directory. All rights are reserved by the respective artists and record labels
- ASCII Art by: TextKool
- Quickstart: Secrets Hidden in Images (Steganography) - Computerphile