PHPackages                             bugcat/shortcrypt - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bugcat/shortcrypt

ActivePackage[Utility &amp; Helpers](/categories/utility)

bugcat/shortcrypt
=================

shortcrypt

v0.0(7y ago)0151MITPHP

Since Mar 31Pushed 7y agoCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

shortcrypt 短位加密
===============

[](#shortcrypt-短位加密)

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

[](#installation)

The ShortCrypt Service Provider can be installed via [Composer](http://getcomposer.org) by requiring the `bugcat/shortcrypt` package and setting the `minimum-stability` to `dev` in your project's `composer.json`.

```
{
    "require": {
        "bugcat/shortcrypt": "~0.0"
    },
    "minimum-stability": "dev"
}

```

or

Require this package with composer:

```
composer require bugcat/shortcrypt

```

Update your packages with `composer update` or install with `composer install`.

In Windows, you'll need to include the GD2 DLL `php_gd2.dll` in php.ini. And you also need include `php_fileinfo.dll` and `php_mbstring.dll` to fit the requirements of `bugcat/shortcrypt`'s dependencies.

Usage
-----

[](#usage)

莫名其妙的需求：将一些字符串(目前仅支持数字)加密成密文 需要尽量短 多变 可解密

Example Usage
-------------

[](#example-usage)

```
use Bugcat\ShortCrypt\NumberCrypter;

$nums = [54321, 9999, 2019];
$encrypted = NumberCrypter::encrypt($nums, 16);
var_dump($encrypted);
//string(16) "ln0l7pru15wxm1k3"

$decrypted = NumberCrypter::decrypt($encrypted);
var_dump($decrypted);
//array(3) { [0]=> string(5) "54321" [1]=> string(4) "9999" [2]=> string(4) "2019" }

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

2603d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/bugcat-shortcrypt/health.svg)

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

PHPackages © 2026

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