PHPackages                             ade\_4d3/php-crypto-wrapper - 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. ade\_4d3/php-crypto-wrapper

ActiveLibrary[Security](/categories/security)

ade\_4d3/php-crypto-wrapper
===========================

Encryption operations wrapper with sodium for PHP

v1.1.0(5mo ago)01MITPHPPHP &gt;=8.2

Since Dec 20Pushed 5mo agoCompare

[ Source](https://github.com/Ade-4d3/PhpCryptoWrapper)[ Packagist](https://packagist.org/packages/ade_4d3/php-crypto-wrapper)[ RSS](/packages/ade-4d3-php-crypto-wrapper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

PHPCryptoWrapper
================

[](#phpcryptowrapper)

**This is a wrapper of sodium for simplifyty cryptograpy operations****Empaquetado para simplificación de operaciones criptográficas usando Sodium**

This is Free Software with MIT License/ Software libre bajo licencia MIT

Aviable:

- Argon2id
- AES-256-GCM
- ChaCha20-Poly1305

Usage
-----

[](#usage)

```
use PhpCryptoWrapper

```

### Argon

[](#argon)

```
use PhpCryptoWrapper\Argon;

Argon::hash($pass);

Argon::verify($text, $hash); // return bool

$salt = Argon::salt();
Argon::derivation($length, $salt, $text); // Derive a password however or with SODIUM_CRYPTO_AEAD_AES256GCM_KEYBYTES

```

### AES

[](#aes)

```
use PhpCryptoWrapper\AES;

$key = AES::genKey(); // O you can use Argon::derivation with SODIUM_CRYPTO_AEAD_AES256GCM_KEYBYTES
$additional_data = // Any data ...
[$nonce, $ciphertext] = AES::encrypt($plaintext, $additional_data, $key);

$plaintext = AES::decrypt($ciphertext, $additional_data, $nonce, $key)

```

### ChaCha20Poly1320

[](#chacha20poly1320)

```
use PhpCryptoWrapper\ChaCha20Poly1305;

// [
//   "ChaCha20Poly1305",
//   "ChaCha20Poly1305-IETF",
//   "XChaCha20Poly1305",
// ]
$chacha20 = new ChaCha20Poly1305($algo); // By default XChaCha20Poly1305
$key = $chacha20->genKey(); // Key o wiht Argon

$additional_data = "anydata";
[$nonce, $ct] = $chacha20->encrypt("Asupersecret", $additional_data, $key);

echo $chacha20->decrypt($ct, $additional_data, $nonce, $key) . "\n";

```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance73

Regular maintenance activity

Popularity1

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity47

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

Unknown

Total

1

Last Release

150d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9791b11da5609e9f8fa84238ff716e4b647f8caac75528c4469724f05269110c?d=identicon)[AdeAde](/maintainers/AdeAde)

---

Tags

cryptography

### Embed Badge

![Health badge](/badges/ade-4d3-php-crypto-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/ade-4d3-php-crypto-wrapper/health.svg)](https://phpackages.com/packages/ade-4d3-php-crypto-wrapper)
```

###  Alternatives

[phpseclib/phpseclib

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

5.6k434.8M1.3k](/packages/phpseclib-phpseclib)[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[paragonie/ciphersweet

Searchable field-level encryption library for relational databases

4641.2M21](/packages/paragonie-ciphersweet)[simplito/elliptic-php

Fast elliptic curve cryptography

2312.2M254](/packages/simplito-elliptic-php)[rych/phpass

PHP Password Library: Easy, secure password management for PHP

248801.7k4](/packages/rych-phpass)[vlucas/pikirasa

PKI public/private RSA key encryption using the OpenSSL extension

104101.1k1](/packages/vlucas-pikirasa)

PHPackages © 2026

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