Hide files inside audio files.
Use "Audio Steganography for Pretty Good Concealment" to compress, encrypt, and hide small files of any type inside compressed audio files (e.g. MP3, FLAC, OGG, OPUS) or inside uncompressed files (.WAV).
-
Install system dependencies:
sudo apt update sudo apt install ffmpeg sox libsox-fmt-mp3 libsox-fmt-all python3-tk python3-pyqt5
-
For development (optional):
sudo apt install python3-dev build-essential libasound2-dev ffmpeg sox libsox-fmt-mp3 libsox-fmt-all python3-tk python3-pyqt5
-
Upgrade Python tooling and install the package:
pip install --upgrade pip setuptools pip install as4pgc
For Windows you can download ffmpeg from here: https://www.ffmpeg.org/
WARNING: the current version was not yet tested on Windows, e.g. installation and use of sox.
Hide a file of any type inside an .mp3 file:
as4pgc -w secret.zip carrier.mp3Use option -p to activate plots and track signal processing steps.
Use option -v to output details.
as4pgc -p -v -w secret.zip carrier.mp3Then recover the hidden file:
as4pgc -r stego.mp3Use the option -h for more information:
as4pgc -hConfiguration settings can be adapted in config.ini. For detailed documentation check the Article in Code Project. The link is provided further below.
https://pypi.org/project/as4pgc/
https://www.codeproject.com/Articles/5313626/Audio-Steganography-for-Pretty-Good-Concealing-AS4
https://github.com/ClarkFieseln/AS4PGC
(c) 2026 Clark Fieseln
This repository is licensed under the MIT license. See LICENSE for details.