PHPackages                             spomky-labs/aes-key-wrap - 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. spomky-labs/aes-key-wrap

ActiveLibrary[Security](/categories/security)

spomky-labs/aes-key-wrap
========================

AES Key Wrap for PHP.

v7.0.0(4y ago)5022.7M—3%314MITPHPPHP &gt;=8.0

Since Jan 2Pushed 4y ago3 watchersCompare

[ Source](https://github.com/Spomky-Labs/aes-key-wrap)[ Packagist](https://packagist.org/packages/spomky-labs/aes-key-wrap)[ Docs](https://github.com/Spomky-Labs/aes-key-wrap)[ GitHub Sponsors](https://github.com/Spomky)[ Patreon](https://www.patreon.com/FlorentMorselli)[ RSS](/packages/spomky-labs-aes-key-wrap/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (21)Used By (14)

PHP AES Key Wrap
================

[](#php-aes-key-wrap)

[![Build Status](https://github.com/Spomky-Labs/aes-key-wrap/workflows/Coding%20Standards/badge.svg)](https://github.com/Spomky-Labs/aes-key-wrap/workflows/Coding%20Standards/badge.svg)[![Build Status](https://github.com/Spomky-Labs/aes-key-wrap/workflows/Static%20Analyze/badge.svg)](https://github.com/Spomky-Labs/aes-key-wrap/workflows/Static%20Analyze/badge.svg)[![Build Status](https://github.com/Spomky-Labs/aes-key-wrap/workflows/Rector%20Checkstyle/badge.svg)](https://github.com/Spomky-Labs/aes-key-wrap/workflows/Rector%20Checkstyle/badge.svg)

[![Build Status](https://github.com/Spomky-Labs/aes-key-wrap/workflows/Unit%20and%20Functional%20Tests/badge.svg)](https://github.com/Spomky-Labs/aes-key-wrap/workflows/Unit%20and%20Functional%20Tests/badge.svg)

[![Build Status](https://github.com/Spomky-Labs/aes-key-wrap/workflows/Mutation%20Testing/badge.svg)](https://github.com/Spomky-Labs/aes-key-wrap/workflows/Mutation%20Testing/badge.svg)

[![Latest Stable Version](https://camo.githubusercontent.com/0420ada672a19fcf8bef918db9ba8309a7a27021592cd522ee762c4d1546e795/68747470733a2f2f706f7365722e707567782e6f72672f53706f6d6b792d4c6162732f6165732d6b65792d777261702f762f737461626c652e706e67)](https://packagist.org/packages/Spomky-Labs/aes-key-wrap)[![Total Downloads](https://camo.githubusercontent.com/17ecb56854b53eb374fdc4a5fbe42901265a1a5e346773091056f1ee6653fb37/68747470733a2f2f706f7365722e707567782e6f72672f53706f6d6b792d4c6162732f6165732d6b65792d777261702f646f776e6c6f6164732e706e67)](https://packagist.org/packages/Spomky-Labs/aes-key-wrap)[![Latest Unstable Version](https://camo.githubusercontent.com/93ef91d984b921de762fadab821a06f923e2d9b000ad625c6c825fa305f2a701/68747470733a2f2f706f7365722e707567782e6f72672f53706f6d6b792d4c6162732f6165732d6b65792d777261702f762f756e737461626c652e706e67)](https://packagist.org/packages/Spomky-Labs/aes-key-wrap)[![License](https://camo.githubusercontent.com/a698df9f57a14df60510470b8b7a2e41f790e6f41bce5fb6eff889eceacdbc15/68747470733a2f2f706f7365722e707567782e6f72672f53706f6d6b792d4c6162732f6165732d6b65792d777261702f6c6963656e73652e706e67)](https://packagist.org/packages/Spomky-Labs/aes-key-wrap)

This library provides an implementation of the [RFC 3394 (Advanced Encryption Standard (AES) Key Wrap Algorithm)](https://tools.ietf.org/html/rfc3394) and the [RFC 5649 (Advanced Encryption Standard (AES) Key Wrap with Padding Algorithm)](https://tools.ietf.org/html/rfc5649).

The Release Process
===================

[](#the-release-process)

The release process [is described here](doc/Release.md).

Prerequisites
=============

[](#prerequisites)

This library needs at least `PHP 8.0`. It has been successfully tested using `8.0` and `8.1`.

Installation
============

[](#installation)

The preferred way to install this library is to rely on Composer:

```
composer require spomky-labs/aes-key-wrap
```

How to use
==========

[](#how-to-use)

Take a look at [How to use](doc/Use.md) to use this library.

Support
=======

[](#support)

I bring solutions to your problems and answer your questions.

If you really love that project and the work I have done or if you want I prioritize your issues, then you can help me out for a couple of 🍻 or more!

[Become a sponsor](https://github.com/sponsors/Spomky)

Or

[![Become a Patreon](https://camo.githubusercontent.com/ef7b855018f1f680eeba6fd1ac470b9c1971ef883b2f4b9fcf41034274510e3f/68747470733a2f2f63352e70617472656f6e2e636f6d2f65787465726e616c2f6c6f676f2f6265636f6d655f615f706174726f6e5f627574746f6e2e706e67)](https://www.patreon.com/FlorentMorselli)

Contributing
============

[](#contributing)

Requests for new features, bug fixed and all other ideas to make this library useful are welcome. [Please follow these best practices](doc/Contributing.md).

If you discover a security vulnerability within the project, please **don't use the bug tracker and don't publish it publicly**. Instead, all security issues must be sent to security \[at\] spomky-labs.com.

Licence
=======

[](#licence)

This software is release under [MIT licence](LICENSE).

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity59

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 98.1% 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 ~149 days

Recently: every ~429 days

Total

18

Last Release

1622d ago

Major Versions

v2.0.4 → v3.0.02016-03-17

v3.0.3 → v4.0.02017-03-26

v4.0.1 → v5.0.02018-07-23

v5.0.0 → v6.0.02020-08-01

v6.0.0 → v7.0.02021-12-08

PHP version history (6 changes)v0.1PHP &gt;=5.4

v3.0.3PHP ^5.4|^7.0

v4.0.0PHP ^7.0

v5.0.0PHP ^7.1

v6.0.0PHP &gt;=7.2

v7.0.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/ccc6c59de7d9ddc53219653bc58f1e082ef83d96632d233eedc0b7097cf80ea3?d=identicon)[Spomky](/maintainers/Spomky)

---

Top Contributors

[![Spomky](https://avatars.githubusercontent.com/u/1091072?v=4)](https://github.com/Spomky "Spomky (53 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

aesaes-encryptionkeywrappingphpaeswrapkeypaddingA128KWA192KWA256KWRFC3394RFC5649

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/spomky-labs-aes-key-wrap/health.svg)

```
[![Health](https://phpackages.com/badges/spomky-labs-aes-key-wrap/health.svg)](https://phpackages.com/packages/spomky-labs-aes-key-wrap)
```

###  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)[spomky-labs/php-aes-gcm

AES GCM (Galois Counter Mode) PHP implementation.

724.9M20](/packages/spomky-labs-php-aes-gcm)[nzo/url-encryptor-bundle

The NzoUrlEncryptorBundle is a Symfony Bundle used to Encrypt and Decrypt data and variables in the Web application or passed through URL

961.0M2](/packages/nzo-url-encryptor-bundle)[mmeyer2k/dcrypt

A petite library of encryption functionality for PHP

98727.2k1](/packages/mmeyer2k-dcrypt)[ionux/phactor

Phactor is a high-performance PHP implementation of the elliptic curve math functions required to generate &amp; verify private/public (asymmetric) EC keypairs and ECDSA signatures based on secp256k1 curve parameters. This library also includes a class to generate Service Identification Numbers (SINs) based on the published Identity Protocol v1 spec.

5275.0k30](/packages/ionux-phactor)

PHPackages © 2026

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