|Ratings|| ||Unique User Downloads|| ||Download Rankings|
|Not yet rated by the users||Total: 121 ||All time: 9,373 This week: 310|
This class can encode message inside an image with steganography.
It can take the path of a given image file and loads it, so it can encode a given text message and store it inside the image in a way that is not easy to notice by real people. The resulting image can be saved to a new file.
The class can also read a given image file with a message stored previously in it and returns the decode message.
Steganography is the art of hiding information in plain image. This project is PHP implementation of this idea and you can hide / fetch plain text from image in bmp or png format.
PHP >= 7.1
A GD extension
(optional) PHPUnit to run tests.
$ composer require ravjanisz/imagecrypt
// add instance
// pass directory and filename
$crypt = new ImageCrypt(__DIR__ . '/files', 'glass.png');
//prepare string to crypt in image
$string = 'ImageCrypt';
//crypt string and save to new file
//decrypt from file
$decrypt = new ImageCrypt(__DIR__ . '/files', 'glassSaved.png');
//get decrypted message or get exception
$string = $decrypt->decrypt();
imagecrypt is licensed under the MIT License - see the LICENSE file for details
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.