PHPackages                             aichenk/open-crypt - 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. aichenk/open-crypt

ActiveLibrary[Security](/categories/security)

aichenk/open-crypt
==================

1.0.1(6y ago)11.2k↓100%MITPHPPHP &gt;=7.2

Since Nov 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/aiChenK/open-crypt)[ Packagist](https://packagist.org/packages/aichenk/open-crypt)[ RSS](/packages/aichenk-open-crypt/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

open-crypt
==========

[](#open-crypt)

> 简单php加密类，基于openssl

运行环境
----

[](#运行环境)

- PHP 7.2+
- openssl extension

安装方法
----

[](#安装方法)

```
    composer require aichenk/open-crypt

```

使用
--

[](#使用)

```
$crypt = new Crypt();
$crypt->setKey('12345678');
//$crypt->setCipher('des-ecb');
//$crypt->setIv('fff');
$text = 'test1234';
$encryptText = $crypt->encrypt($text);
$decryptText = $crypt->decrypt($encryptText);
```

命令行
---

[](#命令行)

1. php执行

    ```
     php bin/encrypt text [key]
     php bin/decrypt encryptText [key]

    ```
2. 系统命令(composer 引入，项目根目录下)

    ```
      vendor/bin/encrypt text [key]
      vendor/bin/decrypt encryptText [key]

    ```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

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

Every ~1 days

Total

2

Last Release

2354d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/aichenk-open-crypt/health.svg)

```
[![Health](https://phpackages.com/badges/aichenk-open-crypt/health.svg)](https://phpackages.com/packages/aichenk-open-crypt)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M212](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

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

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

A PHP library for XML Security

41278.1M117](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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