PHPackages                             chinawilon/aes - 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. chinawilon/aes

ActiveLibrary[Security](/categories/security)

chinawilon/aes
==============

description

1.1(5y ago)12132MITPHPPHP &gt;=7.1

Since Feb 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/chinawilon/aes)[ Packagist](https://packagist.org/packages/chinawilon/aes)[ RSS](/packages/chinawilon-aes/feed)WikiDiscussions main Synced 4d ago

READMEChangelogDependencies (1)Versions (3)Used By (2)

AES
===

[](#aes)

[![Build Status](https://camo.githubusercontent.com/90e48b074f7c2d44ae92909e1338e14b81e6abdaa21d128ffb2dc7385d6e7a80/68747470733a2f2f7472617669732d63692e6f72672f6368696e6177696c6f6e2f6165732e7376673f6272616e63683d6d61696e)](https://travis-ci.org/chinawilon/aes)[![codecov](https://camo.githubusercontent.com/c5ba591ec2e8f848b7345f9b4f85052dde7009a047779d416c55d4c9a6f3a924/68747470733a2f2f636f6465636f762e696f2f67682f6368696e6177696c6f6e2f6165732f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d444c393857504734534d)](https://codecov.io/gh/chinawilon/aes)[![Supported PHP versions: =7.1+](https://camo.githubusercontent.com/31a9e41b61e055e51b957a206ea9e9f6356af2bce8ac24321b2ad6d89e3aab64/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d372e312b2d626c75652e737667)](https://camo.githubusercontent.com/31a9e41b61e055e51b957a206ea9e9f6356af2bce8ac24321b2ad6d89e3aab64/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d372e312b2d626c75652e737667)

example:

```
use AES\AES;

$plain = "test中文test!!";
$key = "abc132123123123e425ab234523a45ef"; //must be hexadecimal string

$aes = new AES($key, 'aes-128-gcm');
$encrypt = $aes->encrypt($plain);
// 3vhFDoifaCXTZdA5nyZxH5ajrbGFdVFHFJhT8Qw8yVDj/UQoWONn40/NdaQ

$aes->decrypt($encrypt);
// test中文test!!
```

License
=======

[](#license)

MIT

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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 ~2 days

Total

2

Last Release

1900d ago

PHP version history (2 changes)1.0PHP &gt;=7.0

1.1PHP &gt;=7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13992306?v=4)[chinawilon](/maintainers/chinawilon)[@chinawilon](https://github.com/chinawilon)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/chinawilon-aes/health.svg)

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

###  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)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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