PHPackages                             dbeurive/cast128 - 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. dbeurive/cast128

ActiveLibrary

dbeurive/cast128
================

This project implements the RFC 2144 - The CAST-128 Encryption Algorithm.

1.0.0(7y ago)06MITPHPPHP ^7.0

Since Sep 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/dbeurive/Cast128)[ Packagist](https://packagist.org/packages/dbeurive/cast128)[ RSS](/packages/dbeurive-cast128/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Introduction
============

[](#introduction)

This repository contains a PHP module that implements the CAST-128 Encryption Algorithm as specified by the [RFC 2144](https://tools.ietf.org/html/rfc2144).

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

[](#installation)

From the command line:

```
composer require dbeurive\cast128

```

If you want to include this package to your project, then edit your file composer.json and add the following entry:

```
"require": {
    "dbeurive/cast128": "*"
}

```

Synopsis
========

[](#synopsis)

```
use dbeurive\Cast128\Cast128;

$key = array(0x01, 0x23, 0x45, 0x67, 0x12, 0x34, 0x56, 0x78, 0x23, 0x45);
$data_to_cypher = array(0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF); // 32-bit long!
$cypher = new Cast128($key);
$cyphered = $cypher->cypher($data_to_cypher);
$deciphered = $cypher->decipher($cyphered);

```

**The key**: The key is represented by an array of 8-bit integer values (from 0 to 255). The array contains from 5 to 16 values. That is, the length of the key varies from 40 to 128 bits.

**The data to cypher/decipher**: This data is represented by an array of exactly 8 values. That it, the data to cypher is a 32-bit long value.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity57

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

2795d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18211524?v=4)[Denis BEURIVE](/maintainers/dbeurive)[@dbeurive](https://github.com/dbeurive)

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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