PHPackages                             randomphp/gcm - 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. randomphp/gcm

ActiveLibrary[Security](/categories/security)

randomphp/gcm
=============

Package for encrypting strings with AES256-GCM

1.2.2(3mo ago)00UNLICENSEPHPPHP &gt;=8.1

Since Feb 15Pushed 3mo agoCompare

[ Source](https://github.com/randomphp/gcm)[ Packagist](https://packagist.org/packages/randomphp/gcm)[ RSS](/packages/randomphp-gcm/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

[![RandomPHP](./assets/randomphp_text.png)](./assets/randomphp_text.png)

RandomPHP GCM
=============

[](#randomphp-gcm)

Secure string encryption/decryption using **AES-256-GCM** (authenticated encryption) built on **phpseclib v3**.

---

Requirements
------------

[](#requirements)

- **PHP &gt;= 8.1**
- `phpseclib/phpseclib ~3.0`

---

Installation
------------

[](#installation)

```
composer require randomphp/gcm
```

---

Usage
-----

[](#usage)

### Encrypt

[](#encrypt)

```
