kzykhys / steganography
Simple implementation of Steganography (Hiding a hidden message within an image)
Installs: 9 183
Dependents: 0
Suggesters: 0
Security: 0
Stars: 87
Watchers: 6
Forks: 29
Open Issues: 3
Requires
- symfony/options-resolver: ~2.3
This package is not auto-updated.
Last update: 2024-11-05 02:31:16 UTC
README
Simple PHP implementation of Steganography (Hiding a hidden message within an image)
Requirements
- PHP5.4+
Installation
Update your composer.json and run composer update
{ "require": { "kzykhys/steganography": "dev-master" } }
Usage
Put your message into an image
<?php require __DIR__ . '/vendor/autoload.php'; $processor = new KzykHys\Steganography\Processor(); $image = $processor->encode('/path/to/image.jpg', 'Message to hide'); // jpg|png|gif // Save image to file $image->write('/path/to/image.png'); // png only // Or outout image to stdout $image->render();
Extract message from an image
<?php require __DIR__ . '/vendor/autoload.php'; $processor = new KzykHys\Steganography\Processor(); $message = $processor->decode('/path/to/image.png'); echo $message; // "Message to hide"
License
The MIT License
Author
Kazuyuki Hayashi (@kzykhys)