A Python GIF steganography library supporting encryption to embed and extract secure messages within GIF images.
Project description
GIF Steganography
Overview
This project implements GIF steganography using various techniques, coupled with additional layers of security and integrity verification. It enables the encoding of secret messages into GIF images and the decoding of these messages from the images, ensuring the message's secrecy and integrity through encryption, compression, and error correction.
Installation
pip install gif-steganography
Requires Python >= 3.10. Installs the package and all necessary dependencies.
Usage
Encode a Message
gif-steganography encode <input.gif> <output.gif> "Secret Message" "Passphrase" [--nsym 10]
--nsym
(optional): Sets the Reed-Solomon error correction level. Default is 10.
Decode a Message
gif-steganography decode <encoded.gif> "Passphrase" [--nsym 10]
--nsym
must match the encoding setting for successful decryption.
Programmatic Usage
Beyond the command-line interface, gif-steganography
also provides direct API access for integrating steganographic functionalities into Python scripts.
Basic Encoding and Decoding
Embed and retrieve messages programmatically:
from gif_steganography import SteganographyMethod, decode, encode
# Embed a message
encode("input.gif", "output.gif", "Hello, world!", mode=SteganographyMethod.LSB)
# Retrieve a message
message, _ = decode("output.gif")
print(message) # Output: Hello, world!
Secure Encoding and Decoding
For added security, use encryption with your messages:
from gif_steganography import SteganographyMethod, decode, encode
# Securely embed a message
encode("input.gif", "output.gif", "Hello, world!", passphrase="password", mode=SteganographyMethod.CSHIFT)
# Securely retrieve a message
message, _ = decode("output.gif", passphrase="password")
print(message) # Output: Hello, world!
Project Structure
src/
: Core project files.cli.py
: Command-line interface.encode.py
/decode.py
: Encoding and decoding scripts.lib/
: Compression, encryption, and utility modules.modes/
: Core steganography logic.
License
Distributed under the MIT License. See LICENSE
for more information.
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
File details
Details for the file gif-steganography-0.1.0.tar.gz
.
File metadata
- Download URL: gif-steganography-0.1.0.tar.gz
- Upload date:
- Size: 695.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e8e8a4012dd56b6c139a542ff72b398a38dea68a179e19f65e0cc0b61ca31b3 |
|
MD5 | 604dcf9f8ba455df543e380c7857fe2b |
|
BLAKE2b-256 | d3b4dfa16a0070ed6c434eab28b2a82f2cb3972282bf96ce11440aa85d370012 |
File details
Details for the file gif_steganography-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: gif_steganography-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb34398fbcaf64a0c383c318d46bdbae041a023702524105d71e848209ed1ebb |
|
MD5 | f6c62841dabd9d43280c2bdb40e22f00 |
|
BLAKE2b-256 | 10a5be39df3e1836c3f9e0e34232e8d04cbb9a5cd29adcfa8d884b3aee86edc3 |