Skip to main content

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

  1. 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.
  2. Capacity: Because of the error correction overhead, GhostTag can store less data than raw LSB tools. If your message is too long for the image, the library will raise a ValueError.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ghosttag_steganography-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ghosttag_steganography-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

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

Hashes for ghosttag_steganography-0.1.0.tar.gz
Algorithm Hash digest
SHA256 803c63755b8cf83992a22fa5640e0fc0b143ad519eac2773e2cf1164f8ef83cf
MD5 9323854df41e89ccc60672860507d819
BLAKE2b-256 874f9e4b6e6e6abb4e54ef0fed9d6355a39090829d0ee15d61df3708aca1f90c

See more details on using hashes here.

File details

Details for the file ghosttag_steganography-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ghosttag_steganography-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5cc721b69c1cb26472f662e71eb5e3d98f9794feb18dbc16ccf4a794730dca43
MD5 b89f8dc0d8bcaf497fb1a15759824936
BLAKE2b-256 d998737a1b1920b186f99ba4ffd863990869775024abceab680a71b2ac096666

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page