PHPackages                             savannabits/sucipher - 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. savannabits/sucipher

ActiveLibrary[Security](/categories/security)

savannabits/sucipher
====================

AES encryption / Decryption tool that works with javax.crypto

v1.0.0(3y ago)02021MITPHPPHP ^8.0

Since May 17Pushed 3y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (3)Versions (2)Used By (1)

SUCIPHER
========

[](#sucipher)

[![Latest Version on Packagist](https://camo.githubusercontent.com/07f3663c0c9b3bc53a8bba912660dc1dca403063839a333cd852047011c78b28/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736176616e6e61626974732f73756369706865722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/savannabits/sucipher)[![Total Downloads](https://camo.githubusercontent.com/96cde4cfd609ff2112a537c2c5d0c21ddbcfa5a5334d7f3c91344bcb722c95ff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736176616e6e61626974732f73756369706865722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/savannabits/sucipher)[![GitHub Actions](https://github.com/savannabits/sucipher/actions/workflows/main.yml/badge.svg)](https://github.com/savannabits/sucipher/actions/workflows/main.yml/badge.svg)

A simple tool to manage AES encryption using openssl. This is designed to gain compatibility with Java's `javax.crypto`package.

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

[](#installation)

You can install the package via composer:

```
composer require savannabits/sucipher
```

Usage
-----

[](#usage)

### Config:

[](#config)

Add the following keys to your .env file:

```
SUCIPHER_IV="" #Your Initialization vector
SUCIPHER_SECRET_KEY="" #16, 24 or 32 chars depending on the CIPHER used
SUCIPHER_CIPHER="" # e.g aes-128-cbc
```

```
// Encrypt A Plain String:
$data = "Test Message"
$encrypted = app('sucipher')->encrypt($data); // The output is base64 encoded

// Decrypt an encrypted string: (The input should be a base64-encoded decrypted string
$decrypted = app('sucipher')->decrypt($encrypted); // Output: 'Test Message'
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Sam Maosa](https://github.com/savannabits)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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

1095d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5610289?v=4)[Sam Maosa](/maintainers/coolsam726)[@coolsam726](https://github.com/coolsam726)

---

Top Contributors

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

---

Tags

savannabitssucipher

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[illuminate/encryption

The Illuminate Encryption package.

9229.7M280](/packages/illuminate-encryption)[tzsk/otp

A secure, database-free One-Time Password (OTP) generator and verifier for PHP and Laravel.

241641.4k1](/packages/tzsk-otp)[genealabs/laravel-governor

Managing policy and control in Laravel.

201262.8k](/packages/genealabs-laravel-governor)[dgtlss/warden

A Laravel package that proactively monitors your dependencies for security vulnerabilities by running automated composer audits and sending notifications via webhooks and email

8745.6k](/packages/dgtlss-warden)[ercsctt/laravel-file-encryption

Secure file encryption and decryption for Laravel applications

642.6k](/packages/ercsctt-laravel-file-encryption)[laragear/poke

Keep your forms alive, avoid TokenMismatchException by gently poking your Laravel app

2211.5k](/packages/laragear-poke)

PHPackages © 2026

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