PHPackages                             felixdorn/php-rc4 - 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. felixdorn/php-rc4

ActiveLibrary[Security](/categories/security)

felixdorn/php-rc4
=================

 RC4/ARC4 encryption/decryption library for PHP.

0.1.0(2y ago)082↓100%MITPHPPHP ^8.3

Since Mar 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/felixdorn/php-rc4)[ Packagist](https://packagist.org/packages/felixdorn/php-rc4)[ RSS](/packages/felixdorn-php-rc4/feed)WikiDiscussions main Synced today

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

RC4/ARC4 encryption/decryption library for PHP.
===============================================

[](#rc4arc4-encryptiondecryption-library-for-php)

[![Tests](https://github.com/felixdorn/php-rc4/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/felixdorn/php-rc4/actions/workflows/tests.yml)[![Formats](https://github.com/felixdorn/php-rc4/actions/workflows/formats.yml/badge.svg?branch=main)](https://github.com/felixdorn/php-rc4/actions/workflows/formats.yml)[![Version](https://camo.githubusercontent.com/d8524ad2ce242e5cee0099d81860d9188130be0c13b9edadff30509787e87712/68747470733a2f2f706f7365722e707567782e6f72672f66656c6978646f726e2f7068702d7263342f76657273696f6e)](//packagist.org/packages/felixdorn/php-rc4)[![Total Downloads](https://camo.githubusercontent.com/04c9f4f724a5103fb45813dc88bcffa8e6e06ff4292ccb2539ea984364f4af37/68747470733a2f2f706f7365722e707567782e6f72672f66656c6978646f726e2f7068702d7263342f646f776e6c6f616473)](//packagist.org/packages/felixdorn/php-rc4)[![License](https://camo.githubusercontent.com/85fa62bcbb306c7847229a480dbd8da24d5bb14352d17a0b004f066bcedee4be/68747470733a2f2f706f7365722e707567782e6f72672f66656c6978646f726e2f7068702d7263342f6c6963656e7365)](//packagist.org/packages/felixdorn/php-rc4)

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

[](#installation)

> Requires [PHP 8.3+](https://php.net/releases)

You can install the package via composer:

```
composer require felixdorn/php-rc4
```

Usage
-----

[](#usage)

```
$encrypted = \Felix\RC4\RC4::rc4('key', 'data')
$decrypted = \Felix\RC4\RC4::rc4('key', $encrypted);
```

In tests

```
\Felix\RC4\RC4::fake(function ($key, $data) {
    // Fake it if you need to for some reason.
});
```

Helpers

```
rc4('key', 'data'); // calls RC4::rc4

// Or, to be semantic:
$encrypted = rc4_encrypt('key', 'data');
$decrypted = rc4_decrypt('key', 'data');
// But both call rc4() under the hood
```

Testing
-------

[](#testing)

```
composer test
```

**php-rc4** was created by **[Félix Dorn](https://felixdorn.fr)** under the **[MIT license](https://opensource.org/licenses/MIT)**.

###  Health Score

23

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

733d ago

### Community

Maintainers

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

---

Top Contributors

[![felixdorn](https://avatars.githubusercontent.com/u/55788595?v=4)](https://github.com/felixdorn "felixdorn (1 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/felixdorn-php-rc4/health.svg)

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k158.4M197](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k95.2M5.8k](/packages/roave-security-advisories)[ircmaxell/password-compat

A compatibility library for the proposed simplified password hashing algorithm: https://wiki.php.net/rfc/password\_hash

2.1k56.3M116](/packages/ircmaxell-password-compat)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.1M98](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41176.1M107](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86816.9M54](/packages/bjeavons-zxcvbn-php)

PHPackages © 2026

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