PHPackages                             ravjanisz/imagecrypt - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. ravjanisz/imagecrypt

ActiveLibrary

ravjanisz/imagecrypt
====================

imagecrypt

11.1k1PHPCI failing

Since Oct 23Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ravjanisz/imagecrypt)[ Packagist](https://packagist.org/packages/ravjanisz/imagecrypt)[ RSS](/packages/ravjanisz-imagecrypt/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

imagecrypt
==========

[](#imagecrypt)

[![Build Status](https://camo.githubusercontent.com/11b45f9d186633a954e804e683ef5f65bcfca0edf749b1d96dd786a9043f028f/68747470733a2f2f7472617669732d63692e6f72672f7261766a616e69737a2f696d61676563727970742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ravjanisz/imagecrypt)[![codecov](https://camo.githubusercontent.com/c24697feb01f2dec642044718c764889763d3f00f413c2a70ac98cb2adf02940/68747470733a2f2f636f6465636f762e696f2f67682f7261766a616e69737a2f696d61676563727970742f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/ravjanisz/imagecrypt)

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
------------

[](#requirements)

- PHP &gt;= 7.2
- A GD extension
- (optional) PHPUnit to run tests.

Install
-------

[](#install)

Via Composer:

```
$ composer require ravjanisz/imagecrypt
```

Usage
-----

[](#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
-------------

[](#documentation)

None

Support the development
-----------------------

[](#support-the-development)

**Do you like this project? Support it by donating**

[![alt Buy me a coffee](https://raw.githubusercontent.com/ravjanisz/imagecrypt/master/docs/assets/bmc.png)](https://www.buymeacoffee.com/ravjanisz)License
-------

[](#license)

imagecrypt is licensed under the MIT License - see the LICENSE file for details

###  Health Score

22

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ce6fa2b1b0bac3b867bc8abeae88326df0b0a5bf23ead28329c32c7941964c71?d=identicon)[ravjanisz](/maintainers/ravjanisz)

---

Top Contributors

[![ravjanisz](https://avatars.githubusercontent.com/u/28200514?v=4)](https://github.com/ravjanisz "ravjanisz (27 commits)")

### Embed Badge

![Health badge](/badges/ravjanisz-imagecrypt/health.svg)

```
[![Health](https://phpackages.com/badges/ravjanisz-imagecrypt/health.svg)](https://phpackages.com/packages/ravjanisz-imagecrypt)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
