PHPackages                             zeyos/cryptastic - 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. zeyos/cryptastic

ActiveLibrary

zeyos/cryptastic
================

PHP Encryption / Decryption Using the MCrypt Library.

1.0(11y ago)365LGPLPHPPHP &gt;=5.4.0

Since Oct 17Pushed 10y ago2 watchersCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (0)

cryptastic
==========

[](#cryptastic)

THIS IS A MODIFIED VERSION OF THE cryptastic CLASS by Andrew Johnson

The original code can be found at the following URL

Example
-------

[](#example)

```
$pass = 'the password';
$salt = 'the password salt';
$msg  = 'This is the secret message.';

/**********************************************************************************************************************/

// EXAMPLE #1 USING STRING AS MESSAGE

$cryptastic = new cryptastic;

$key = $cryptastic->pbkdf2($pass, $salt, 1000, 32) or
	die("Failed to generate secret key.");

$encrypted = $cryptastic->encrypt($msg, $key) or
	die("Failed to complete encryption.");

$decrypted = $cryptastic->decrypt($encrypted, $key) or
	die("Failed to complete decryption");

echo $decrypted . "\n";

/**********************************************************************************************************************/

// EXAMPLE #2 USING ARRAY AS MESSAGE

$msg        = array('message' => $msg);
$encrypted  = $cryptastic->encrypt($msg, $key);
$decrypted  = $cryptastic->decrypt($encrypted, $key);

echo $decrypted['message'];
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

4228d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/73f59bbbf0bea604e68e44b4150ed339c2e789859992ea1ea415aea691e0bde7?d=identicon)[zeyos](/maintainers/zeyos)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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