Download the PHP package pateon/steganography without Composer
On this page you can find all versions of the php package pateon/steganography. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download pateon/steganography
More information about pateon/steganography
Files in pateon/steganography
Download pateon/steganography
More information about pateon/steganography
Files in pateon/steganography
Vendor pateon
Package steganography
Short Description Invisible anti-counterfeiting for images using LSB Steganography (PHP 8.5+). Supports Imagick and GD.
License MIT
Package steganography
Short Description Invisible anti-counterfeiting for images using LSB Steganography (PHP 8.5+). Supports Imagick and GD.
License MIT
Please rate this library. Is it a good library?
Informations about the package steganography
Steganography
A PHP 8.5+ library for invisible anti-counterfeiting of images using LSB (Least Significant Bit) Steganography. This library hides a secret message inside an image file, invisible to the human eye.
Features
- ✅ Invisible: Modifies only the Least Significant Bits (LSB) of RGB pixel values
- ✅ Compression: Compresses messages using Zlib before embedding
- ✅ Unicode Support: Full support for UTF-8, including CJK characters and emoji
- ✅ Dual Driver Support: Prioritizes
Imagick, falls back toGDautomatically - ✅ Format Support: Reads JPG, PNG, GIF, WebP, BMP as source images
- ✅ Lossless Output: Always outputs as PNG to preserve hidden data
- ✅ PHP 8.5+: Uses modern PHP features (typed constants, readonly properties, match expressions)
- ✅ Composer Ready: PSR-4 autoloading, ready for integration
Requirements
- PHP >= 8.5
ext-zlib(for compression)ext-imagick(recommended) ORext-gd(at least one is required)
Installation
Usage
Basic Usage
Force Specific Adapter
Calculate Maximum Message Size
Custom Compressor
⚠️ Important Notes
-
Output Format: Always save encoded images as PNG. JPG compression is lossy and will destroy the hidden data.
-
Source Format: JPG, PNG, GIF, WebP, and BMP are supported as source images.
-
Image Size: Larger images can store more data. Use
calculateMaxMessageSize()to check capacity. - Imagick vs GD: Imagick is preferred for better performance. GD is used as fallback.
Architecture
How It Works
- Compression: The message is compressed using Zlib
- Encoding: Compressed data is Base64 encoded, then converted to binary (0s and 1s)
- Embedding: Each pixel's RGB values have their LSB modified to store 3 bits (1 per channel)
- Header: A 48-bit length header is prepended to know how much data to read when decoding
License
MIT License - see LICENSE file
All versions of steganography with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.5.0
ext-zlib Version *
ext-zlib Version *
The package pateon/steganography contains the following files
Loading the files please wait ...