PHPackages                             adeotek/gibberish-aes-php - 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. [Security](/categories/security)
4. /
5. adeotek/gibberish-aes-php

ActiveLibrary[Security](/categories/security)

adeotek/gibberish-aes-php
=========================

Gibberish AES, a PHP Implementation

v1.3.5(5y ago)0931MIT LicensePHPPHP &gt;=7.1

Since Jun 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/adeotek/gibberish-aes-php)[ Packagist](https://packagist.org/packages/adeotek/gibberish-aes-php)[ RSS](/packages/adeotek-gibberish-aes-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (1)Versions (4)Used By (1)

Gibberish AES, a PHP Implementation
===================================

[](#gibberish-aes-a-php-implementation)

See Gibberish AES javascript encryption library,

An important note: The complementary JavaScript project Gibberish AES has been deprecated, see [mdp/gibberish-aes#25](https://github.com/mdp/gibberish-aes/issues/25)
Consider finding alternative PHP and JavaScript solutions.

This class is based on initial code proposed by nbari at dalmp dot com

Live Demo
---------

[](#live-demo)

Requirements:
-------------

[](#requirements)

- OpenSSL functions installed and PHP version &gt;= 5.3.3

or

- Mcrypt functions installed and PHP version &lt; 7.1.0-alpha

For PHP under version 7 it is recommendable you to install within your project "PHP 5.x support for random\_bytes() and random\_int()", [https://github.com/paragonie/random\_compat](https://github.com/paragonie/random_compat)

Usage Example:
--------------

[](#usage-example)

```
echo '';

// This is a secret pass-phrase, keep it in a safe place and don't loose it.
$pass = 'my secret pass-phrase, it should be long';
echo '$pass = '.$pass;
echo '';
// The string to be encrypted.
$string = 'my secret message';
echo '$string = '.$string;
echo '';
echo '';

// The default key size is 256 bits.
$old_key_size = GibberishAES::size();

echo 'Encryption and decryption using a 256-bit key:';
echo '';
GibberishAES::size(256);
// This is the result after encryption of the given string.
$encrypted_string = GibberishAES::enc($string, $pass);
// This is the result after decryption of the previously encrypted string.
// $decrypted_string == $string (should be).
$decrypted_string = GibberishAES::dec($encrypted_string, $pass);
echo '$encrypted_string = '.$encrypted_string;
echo '';
echo '$decrypted_string = '.$decrypted_string;
echo '';
echo '';

echo 'Encryption and decryption using a 192-bit key:';
echo '';
GibberishAES::size(192);
$encrypted_string = GibberishAES::enc($string, $pass);
$decrypted_string = GibberishAES::dec($encrypted_string, $pass);
echo '$encrypted_string = '.$encrypted_string;
echo '';
echo '$decrypted_string = '.$decrypted_string;
echo '';
echo '';

echo 'Encryption and decryption using a 128-bit key:';
echo '';
GibberishAES::size(128);
$encrypted_string = GibberishAES::enc($string, $pass);
$decrypted_string = GibberishAES::dec($encrypted_string, $pass);
echo '$encrypted_string = '.$encrypted_string;
echo '';
echo '$decrypted_string = '.$decrypted_string;
echo '';
echo '';

// Restore the old key size.
GibberishAES::size($old_key_size);
```

Author: Ivan Tcholakov, 2012-2016.
License: The MIT License (MIT),

A fragment of code is under the New BSD License, George Argyros, 2012.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 84.3% 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.

###  Release Activity

Cadence

Every ~524 days

Total

3

Last Release

1841d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6872816?v=4)[George Benjamin-Schonberger](/maintainers/adeotek)[@adeotek](https://github.com/adeotek)

---

Top Contributors

[![ivantcholakov](https://avatars.githubusercontent.com/u/1438104?v=4)](https://github.com/ivantcholakov "ivantcholakov (43 commits)")[![adeotek](https://avatars.githubusercontent.com/u/6872816?v=4)](https://github.com/adeotek "adeotek (8 commits)")

### Embed Badge

![Health badge](/badges/adeotek-gibberish-aes-php/health.svg)

```
[![Health](https://phpackages.com/badges/adeotek-gibberish-aes-php/health.svg)](https://phpackages.com/packages/adeotek-gibberish-aes-php)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[ass/xmlsecurity

The XmlSecurity library is written in PHP for working with XML Encryption and Signatures

955.6M30](/packages/ass-xmlsecurity)

PHPackages © 2026

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