Error-Corrected Steganography for Lossy Environments
Project description
GhostTag
GhostTag is an advanced steganography library designed for lossy environments. unlike standard LSB tools that break instantly, GhostTag uses Reed-Solomon error correction to ensure your hidden data survives partial corruption.
Features
- Reed-Solomon Error Correction: Data survives up to 20% pixel corruption.
- Header Protection: Metadata is protected separately to prevent "dead headers."
- Seed-Based Encryption: Data is scattered randomly based on a seed password.
- Auto-Safety: Automatically forces PNG output to prevent accidental JPEG data loss.
Installation
pip install ghosttag
Configuration Guide
When initializing GhostTag, you can tune the parameters for your specific needs:
| Parameter | Default | Description |
|---|---|---|
redundancy |
20 |
Controls robustness. Higher numbers = more resistance to damage, but less total space for text. |
seed |
42 |
The "password" for the data distribution. If the receiver uses the wrong seed, they cannot find the data. |
Important Limitations
- Output Format: The library forces the output to be PNG. You cannot save steganography data into a JPEG file because JPEG compression alters pixel values, which destroys the hidden message immediately.
- Capacity: Because of the error correction overhead,
GhostTagcan store less data than raw LSB tools. If your message is too long for the image, the library will raise aValueError.
Usage
from ghosttag import GhostTag
# Initialize with a "password" seed
ghost = GhostTag(redundancy=20, seed=1337)
# Embed a secret
ghost.embed("input_image.jpg", "This is a secret message!", "output_image.png")
# Extract a secret
success, message = ghost.extract("output_image.png")
if success:
print(f"Found secret: {message}")
else:
print("Data corrupted or no secret found.")
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ghosttag_steganography-0.1.0.tar.gz.
File metadata
- Download URL: ghosttag_steganography-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
803c63755b8cf83992a22fa5640e0fc0b143ad519eac2773e2cf1164f8ef83cf
|
|
| MD5 |
9323854df41e89ccc60672860507d819
|
|
| BLAKE2b-256 |
874f9e4b6e6e6abb4e54ef0fed9d6355a39090829d0ee15d61df3708aca1f90c
|
File details
Details for the file ghosttag_steganography-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ghosttag_steganography-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5cc721b69c1cb26472f662e71eb5e3d98f9794feb18dbc16ccf4a794730dca43
|
|
| MD5 |
b89f8dc0d8bcaf497fb1a15759824936
|
|
| BLAKE2b-256 |
d998737a1b1920b186f99ba4ffd863990869775024abceab680a71b2ac096666
|