Open a terminal in the project directory and run the following command to compile the application:
g++ steg.cpp -o steganography_tool -std=c++17
This will create an executable file named steganography_tool.
The tool operates in two modes: encode and decode.
Hides a message from a text file inside an image.
Syntax:
./steganography_tool encode <input_image> <output_image> <key> <message_file>
Example:
./steganography_tool encode input.png output.png "my-secret-key" message.txt
Extracts a hidden message from an encoded image.
Syntax:
./steganography_tool decode <encoded_image> <key>
Example:
./steganography_tool decode output.png "my-secret-key"