Skip to main content

Multimedia Obfuscation & Steganography Toolkit

Project description

ImageStego

Multimedia Obfuscation & Steganography Toolkit — a Python library for image/video obfuscation and message hiding.

Features

Obfuscation (Image / GIF / MP4)

Algorithm Description
Pixel Scramble Pseudo-random pixel permutation
Block Scramble Block-level shuffling
Arnold Cat Map Classic chaotic map transform
Baker's Map Baker's map + optional XOR encryption
Henon Map Henon chaotic system
Logistic Map Logistic chaotic sequence
DNA Encoding DNA-based pixel encoding
Spiral Scan Spiral-order pixel rearrangement

Steganography

Method Description
LSB Least Significant Bit embedding
LSB Edge Randomized LSB with edge detection
DCT Frequency-domain (DCT coefficient) embedding
DWT Wavelet-domain (Haar DWT) embedding
PVD Pixel Value Differencing
Spread Spectrum QIM-based spread spectrum

All steganography methods support Fernet encryption (password-protected) and timestamp embedding.

Installation

pip install imagestego

Optional dependencies:

pip install imagestego[gui]       # Web GUI (PyWebIO)
pip install imagestego[progress]  # Progress bars (tqdm)

Quick Start

Obfuscation

from imagestego import pixel_obfuscate, pixel_deobfuscate

# Encrypt
pixel_obfuscate("input.png", "encrypted.png", seed=42)

# Decrypt
pixel_deobfuscate("encrypted.png", "restored.png", seed=42)

Multi-layer Pipeline

from imagestego import ObfuscationPipeline

pipeline = ObfuscationPipeline()
pipeline.add_layer("arnold", iterations=30)
pipeline.add_layer("bakers", iterations=10, password="secret")
pipeline.add_layer("dna")

sidecar = pipeline.encrypt("input.png", "output.png")
# Generates output.png + output.layers.json

pipeline.decrypt("output.png", "restored.png")

Steganography

from imagestego import lsb_embed_message, lsb_extract_message

# Hide a message
lsb_embed_message("cover.png", "Hello World", "stego.png", password="key123")

# Extract
result = lsb_extract_message("stego.png", password="key123")
print(result["message"])

Batch Processing

from imagestego.batch_processor import batch_obfuscate

result = batch_obfuscate(
    input_dir="./images",
    output_dir="./output",
    method="arnold",
    params={"iterations": 20},
    max_workers=4,
)
print(result)  # Total=10, Success=10, Failed=0

CLI

imagestego          # Interactive CLI
imagestego-gui      # Web GUI (requires pywebio)

Requirements

  • Python >= 3.9
  • numpy, Pillow, cryptography, scipy, moviepy

License

MIT

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

imagestego-2.0.1.tar.gz (48.6 kB view details)

Uploaded Source

Built Distribution

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

imagestego-2.0.1-py3-none-any.whl (65.6 kB view details)

Uploaded Python 3

File details

Details for the file imagestego-2.0.1.tar.gz.

File metadata

  • Download URL: imagestego-2.0.1.tar.gz
  • Upload date:
  • Size: 48.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for imagestego-2.0.1.tar.gz
Algorithm Hash digest
SHA256 8c7001d16c4ffcaafaae5bea1945ecebbc092b622c85667543358d508f0316e9
MD5 459bab265d273079e27bd6ace47127bf
BLAKE2b-256 01d2ae0cfe6e0fb5acf1fef64bb0c868b662cecc098c85ee7a883a835223f382

See more details on using hashes here.

File details

Details for the file imagestego-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: imagestego-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 65.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for imagestego-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 902e603145ba09c610e96da781dfa6ec4d382a61a1d68512897a2575f5b768bf
MD5 14d42888e885b6f7f77dfa02bbc28bf5
BLAKE2b-256 75a6391d4c7d7c5f7973e22b3e35d73db10abed776c1e9948014b3bc65d9dfe2

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