PHPackages                             ronakiihglobal/stringcrypto - 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. ronakiihglobal/stringcrypto

ActiveLibrary[Security](/categories/security)

ronakiihglobal/stringcrypto
===========================

encrypt decrypt id/string with ease

v1.0.1(5y ago)011MITPHP

Since May 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ronakiihglobal/stringcrypto)[ Packagist](https://packagist.org/packages/ronakiihglobal/stringcrypto)[ RSS](/packages/ronakiihglobal-stringcrypto/feed)WikiDiscussions master Synced today

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

About StringCrypto
------------------

[](#about-stringcrypto)

This is simple package for encrypt/decrypt small strings like database IDs with ease. It is based on openssl\_encrypt.

The encrypt method used is `AES-256-CBC`.

Usage
-----

[](#usage)

`composer require ronakiihglobal/stringcrypto`

then

`require_once __DIR__ . '/vendor/autoload.php';`

`use ronakiihglobal\stringcrypto\Crypto;`

`$crypto = new Crypto("testkey","testIv");` these values should be random string of length 16 and should be managed as secret in env variables.

`$encrypted = $crypto::encrypt("123");` this value should be string.

`$decrypted = $crypto::decrypt($encrypted);`

###  Health Score

24

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Every ~0 days

Total

2

Last Release

1912d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/48983904?v=4)[Ronak Patel](/maintainers/ronakiihglobal)[@ronakiihglobal](https://github.com/ronakiihglobal)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ronakiihglobal-stringcrypto/health.svg)

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

###  Alternatives

[phpids/phpids

PHPIDS (PHP-Intrusion Detection System) is a simple to use, well structured, fast and state-of-the-art security layer for your PHP based web application

791150.0k2](/packages/phpids-phpids)[paragonie/ecc

PHP Elliptic Curve Cryptography library

25866.3k44](/packages/paragonie-ecc)[nicobleiler/php-passphrase

Passphrase generator with Laravel integration, inspired by Bitwarden. Uses the EFF long word list by default with support for custom wordlists.

4912.6k](/packages/nicobleiler-php-passphrase)[dwgebler/encryption

Encryption wrapper for PHP using libsodium — simple API for symmetric and asymmetric encryption, password hashing, digital signing, and message authentication.

317.5k](/packages/dwgebler-encryption)

PHPackages © 2026

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