dev-master
9999999-devSimple implementation of Steganography (Hiding a hidden message within an image)
MIT
The Requires
by Kazuyuki Hayashi
steganography
Wallogit.com
2017 © Pedro Peláez
Simple implementation of Steganography (Hiding a hidden message within an image)
Simple PHP implementation of Steganography (Hiding a hidden message within an image), (*2)
Update your composer.json and run composer update, (*3)
``` json { "require": { "kzykhys/steganography": "dev-master" } }, (*4)
Usage ----- ### Put your message into an image ``` php <?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();
``` php <?php, (*5)
require DIR . '/vendor/autoload.php';, (*6)
$processor = new KzykHys\Steganography\Processor(); $message = $processor->decode('/path/to/image.png');, (*7)
echo $message; // "Message to hide" ```, (*8)
The MIT License, (*9)
Kazuyuki Hayashi (@kzykhys), (*10)
Simple implementation of Steganography (Hiding a hidden message within an image)
MIT
steganography