ravjanisz / imagecrypt
imagecrypt
Installs: 1 111
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: >=7.2
- ext-gd: *
Requires (Dev)
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2025-06-29 01:58:37 UTC
README
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.
Requirements
- PHP >= 7.2
- A GD extension
- (optional) PHPUnit to run tests.
Install
Via Composer:
$ composer require ravjanisz/imagecrypt
Usage
// add instance use Rav\ImageCrypt\ImageCrypt; // 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 $crypt->crypt($string, 'glassSaved.png'); //decrypt from file $decrypt = new ImageCrypt(__DIR__ . '/files', 'glassSaved.png'); //get decrypted message or get exception $string = $decrypt->decrypt(); echo $string;
Documentation
None
Support the development
Do you like this project? Support it by donating
License
imagecrypt is licensed under the MIT License - see the LICENSE file for details