PHPackages                             blocktrail/cryptojs-aes-php - 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. blocktrail/cryptojs-aes-php

ActiveLibrary[Security](/categories/security)

blocktrail/cryptojs-aes-php
===========================

Small openssl\_encrypt/decrypt wrapper to be compatible with CryptoJS.AES

v0.1.0(10y ago)46505.9k↓33.1%10[1 issues](https://github.com/blocktrail/cryptojs-aes-php/issues)11MITPHP

Since Aug 7Pushed 4y agoCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (11)

CryptoJS AES PHP
================

[](#cryptojs-aes-php)

This is a **tiny** package to make it a little bit easier to encrypt and decrypt in a manner compatible with `CryptoJS`.

Crypto
------

[](#crypto)

- Cypher: AES-256
- Mode: cbc
- Key Derivation: evpkdf (OpenSSL custom, MD5, 1 iteration)

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

[](#installation)

You will need to be using [Composer](http://getcomposer.org/) in your project. If you aren't using Composer yet, it's really simple! Here's how to install composer and this package:

```
# Install Composer
curl -sS https://getcomposer.org/installer | php

# Add the BlockTrail SDK as a dependency
php composer.phar require blocktrail/cryptojs-aes-php

```

Next, require Composer's autoloader, in your application, to automatically load required packages in your project:

```
require 'vendor/autoload.php';
use Blocktrail\CryptoJSAES\CryptoJSAES;
```

Or if put the following in your `composer.json`:

```
"blocktrail/cryptojs-aes-php": "~0.1.0"

```

Usage
-----

[](#usage)

```
use Blocktrail\CryptoJSAES\CryptoJSAES;

$passphrase = "my passphrase";
$text = "example value";

$encrypted = CryptoJSAES::encrypt($text, $passphrase);
var_dump("Encrypted: ", $encrypted);

$decrypted = CryptoJSAES::decrypt($encrypted, $passphrase);
var_dump("Decrypted: ", $decrypted);
```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity49

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity53

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

3937d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/763cdc5cc50414bacd4ff1080eede79432f7c3cc26a3d8aa9031b1537a8bd734?d=identicon)[thomaskerin](/maintainers/thomaskerin)

![](https://www.gravatar.com/avatar/79903c0b4fe49636ad911a8371463b4ae41dc007801921324567b68ac70529b8?d=identicon)[blocktrail](/maintainers/blocktrail)

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/blocktrail-cryptojs-aes-php/health.svg)

```
[![Health](https://phpackages.com/badges/blocktrail-cryptojs-aes-php/health.svg)](https://phpackages.com/packages/blocktrail-cryptojs-aes-php)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[mews/purifier

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

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41478.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

87117.5M63](/packages/bjeavons-zxcvbn-php)[illuminate/encryption

The Illuminate Encryption package.

9229.7M280](/packages/illuminate-encryption)[paragonie/hidden-string

Encapsulate strings in an object to hide them from stack traces

7410.6M39](/packages/paragonie-hidden-string)

PHPackages © 2026

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