Question: Steganography in Bitmap Files ( Python Programming ) 1 . Objective The objective of this project is to develop a program that applies steganography to
Steganography in Bitmap Files Python Programming
Objective
The objective of this project is to develop a program that applies steganography to image files. Students will have the option to use either JPEG or bitmap BMP files for their steganography project. The goal is to embed secret messages within images and retrieve these messages, providing a practical application of steganographic techniques.
Scope
Students are required to:
Develop a program that embeds a text message into an image file and extracts the message from the image.
Ensure minimal visual alteration of the image due to message embedding.
Handle various message lengths and image sizes efficiently.
Students have the option to choose between JPEG and BMP files for their project:
JPEG Files: Higher complexity due to lossy compression. Max points out of points.
Bitmap BMP Files: Simpler implementation with uncompressed data. Max points out of points.
Deliverables
Students must submit the following:
Source Code: Complete code for both the message embedding and extraction programs.
Documentation: A page report written in point Times New Roman style, including:
Description of the steganographic technique used.
Explanation of the embedding and extraction processes.
Instructions for running the programs.
Sample Files: Images with embedded messages and the corresponding extracted messages.
Requirements
Programming Language: Any programming language of choice, with clear instructions provided for compiling and running the code.
LibrariesTools: Any image manipulation libraries or tools may be used, with documentation on their usage and dependencies.
Techniques: Use leastsignificantbit LSB or a similar technique for message embedding.
Error Handling: Graceful handling of potential errors, such as invalid image files or excessively long messages.
Inputs and Outputs
Input Guidelines:
Embed Message Program:
Command: embedmessage
Inputs:
: Path to the input image file eginputjpg or inputbmp The file size must not exceed MB
: Path to save the image file with the embedded message egoutputjpg or output.bmp
: Text message to be embedded in the image.
Character Set: ASCII characters only.
Length Limit: The message length must not exceed characters.
Encoding: Messages should be encoded in standard ASCII bit avoiding special or nonprintable characters.
Extract Message Program:
Command: extractmessage
Input:
: Path to the image file containing the embedded message egoutputjpg or outputbmp The file size must not exceed MB
Output Guidelines:
Embed Message Program:
Console Output: Confirmation of successful embedding or an error message if the process fails.
File Output: An image file with the embedded message.
Extract Message Program:
Console Output: Extracted message in ASCII format or an error message if the extraction fails.
HowTo Section
How to Embed a Message:
Open a terminal or command prompt.
Navigate to the directory containing the embedmessage program.
Run the command in the format:
embedmessage
Verify the output image file to ensure the message has been embedded.
How to Extract a Message:
Open a terminal or command prompt.
Navigate to the directory containing the extractmessage program.
Run the command in the format:
extractmessage
Review the console output to see the extracted message.
Additional Details
Steganographic Technique Details:
Technique: Use the Least Significant Bit LSB method or a similar technique for embedding the message.
Overview: LSB involves altering the least significant bits of pixel values or DCT coefficients to encode the message without significantly changing the images appearance.
Advantages: Simple to implement and generally preserves image quality.
Limitations: Limited capacity for large messages; may be detectable with certain analysis techniques.
Image Constraints:
JPEG Dimensions: Recommended range for width and height is between x and x pixels.
JPEG Color Depth: JPEG images should be bit color depth bits per channel for RGB
BMP Dimensions: No specific limits but ensure image size remains manageable for processing.
BMP Color Depth: BMP images typically use bit color depth.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
