PHPackages                             mjohann/simple-aes-256 - 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. mjohann/simple-aes-256

ActiveLibrary[Security](/categories/security)

mjohann/simple-aes-256
======================

Simple AES 256 is a PHP class designed to simplify encryption and decryption using AES-256 in CBC or GCM modes.

v1.1.0(1y ago)02011MITPHPPHP ^8.0

Since Apr 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/matheusjohannaraujo/simple-aes-256)[ Packagist](https://packagist.org/packages/mjohann/simple-aes-256)[ RSS](/packages/mjohann-simple-aes-256/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (1)

[Simple AES 256](https://github.com/matheusjohannaraujo/simple-aes-256)
=======================================================================

[](#simple-aes-256)

**SimpleAES256** is a PHP class designed to simplify encryption and decryption using AES-256 in CBC or GCM modes.

📦 Installation
--------------

[](#-installation)

You can install the library via [Packagist/Composer](https://packagist.org/packages/mjohann/simple-aes-256):

```
composer require mjohann/simple-aes-256
```

⚙️ Requirements
---------------

[](#️-requirements)

- PHP 8.0 or higher

🚀 Features
----------

[](#-features)

- Supported AES 256 CBC and AES 256 GCM:
    - `encrypt`
    - `decrypt`
    - `key`
    - `tag`

🧪 Usage Example
---------------

[](#-usage-example)

### Example AES 256 CBC

[](#example-aes-256-cbc)

```
