PHPackages                             xxtea/xxtea - 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. xxtea/xxtea

ActiveLibrary[Security](/categories/security)

xxtea/xxtea
===========

XXTEA is a fast and secure encryption algorithm. This is a XXTEA library for PHP.

v1.0.2(10y ago)11341.7k↓27.8%49[5 issues](https://github.com/xxtea/xxtea-php/issues)MITPHPPHP &gt;=5.2.0

Since Feb 13Pushed 9y ago6 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (4)Used By (0)

XXTEA for PHP
=============

[](#xxtea-for-php)

[ ![XXTEA logo](https://avatars1.githubusercontent.com/u/6683159?v=3&s=86 "XXTEA")](https://github.com/xxtea/)[![Build Status](https://camo.githubusercontent.com/6bd075aa5b43c8191ffea1467a994b927fff53d084796c6cb46e47fbb87e00eb/68747470733a2f2f7472617669732d63692e6f72672f78787465612f78787465612d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/xxtea/xxtea-php)[![Packagist](https://camo.githubusercontent.com/a2a163aa8bbe81af700ae22acb2ffdc42a7c84e56046544dfaa69635ad5d2147/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f78787465612f78787465612e737667)](https://packagist.org/packages/xxtea/xxtea)[![Packagist Download](https://camo.githubusercontent.com/d8cd27b8e331a31e7d06d4df4655236629cf5ea5fafd60bdf3501c2dd2368c82/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f78787465612f78787465612e737667)](https://packagist.org/packages/xxtea/xxtea)[![License](https://camo.githubusercontent.com/e55e67419ed67a6cafeee685ac196b979e0fef3304a03272394e315fc32e7501/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f78787465612f78787465612e737667)](https://packagist.org/packages/xxtea/xxtea)

Introduction
------------

[](#introduction)

XXTEA is a fast and secure encryption algorithm. This is a XXTEA library for PHP.

It is different from the original XXTEA encryption algorithm. It encrypts and decrypts string instead of uint32 array, and the key is also string.

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

[](#installation)

Download the xxtea.php, and put it in your develepment directory.

Usage
-----

[](#usage)

```

```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community15

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~9 days

Total

3

Last Release

3730d ago

### Community

Maintainers

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

---

Top Contributors

[![andot](https://avatars.githubusercontent.com/u/232161?v=4)](https://github.com/andot "andot (22 commits)")

---

Tags

securitycryptographylibraryencryptdecryptcryptxxtea

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[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)[miladrahimi/phpcrypt

Encryption, decryption, and hashing tools for PHP projects

3171.5k2](/packages/miladrahimi-phpcrypt)[poly-crypto/poly-crypto

High-level cryptographic functions that are interoperable between NodeJS and PHP 7.1+

127.8k1](/packages/poly-crypto-poly-crypto)

PHPackages © 2026

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