How krystaldevv/steganalysis-detector works
This is a command-line image steganalysis tool with a companion LSB message embedder and extractor. The main analysis workflow loads an image, computes LSB and histogram heuristics, classifies the results, generates three plots, and prints a verdict. The alternate workflow embeds a message and saves a stego-image; the embedder also supports standalone extraction. The README documents these capabilities, while the edges below rely on the shown entry-point and analysis code; image files and saved plots are represented as file artifacts.
Main entry points: embedder.py Embed And Extract · detector.py Analysis Orchestrator · main.py Main CLI · utils.py Image Loader
Components 16
Command Line
- Main CLI
main.py - Image Loader
src/utils.py
Steganalysis
- Analysis Orchestrator
src/detector.py - LSB Heuristics
src/lsb_analysis.py - Histogram Heuristics
src/histogram_analysis.py - Rule Classifier
src/detector.py
Results
- Plot Generator
src/detector.py - Plot Saver
src/utils.py - Analysis Plots
output - Result Printer
src/utils.py
Message Steganography
- Embed And Extract
src/embedder.py - Stego Image
images/stego
Other components
- User
- Input Image
images - Secret Message
- Terminal Output
Connections 22
- User → Main CLI: runs
README.md - Main CLI → Image Loader: loads image
main.py - Input Image → Image Loader: read by
src/utils.py - Main CLI → Analysis Orchestrator: calls analyze
main.py - Image Loader → Analysis Orchestrator: supplies image
main.py - Analysis Orchestrator → LSB Heuristics: runs tests
src/detector.py - Analysis Orchestrator → Histogram Heuristics: runs tests
src/detector.py - Analysis Orchestrator → Rule Classifier: classifies results
src/detector.py - LSB Heuristics → Rule Classifier: returns metrics
src/detector.py - Histogram Heuristics → Rule Classifier: returns metrics
src/detector.py - Analysis Orchestrator → Plot Generator: generates plots
src/detector.py - Plot Generator → Plot Saver: saves figures
src/detector.py - Plot Saver → Analysis Plots: writes files
src/utils.py - Main CLI → Result Printer: prints verdict
main.py - Result Printer → Terminal Output: writes report
src/utils.py - User → Embed And Extract: requests embed or extract
README.md - Main CLI → Embed And Extract: calls embed_lsb
main.py - Image Loader → Embed And Extract: supplies image
main.py - Secret Message → Embed And Extract: embedded by
src/embedder.py - Embed And Extract → Stego Image: writes image
- Stego Image → Embed And Extract: read for extraction
src/embedder.py - Embed And Extract → Terminal Output: prints extracted text
src/embedder.py