Simple PHP implementation of Steganography (Hiding a hidden message within an image)
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/KzykHys/Steganography Object parameters should be type hinted Jan 24, 2014
test/KzykHys/Steganography
.gitignore
.travis.yml
LICENSE
README.md
composer.json
composer.lock Updates composer dependencies Jan 24, 2014
phpunit.xml.dist initial commit Nov 11, 2013

README.md

Steganography

Latest Unstable Version Build Status Coverage Status SensioLabsInsight

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)