PHPackages                             hcl109080/des - 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. hcl109080/des

ActiveLibrary[Security](/categories/security)

hcl109080/des
=============

DES加密

021PHP

Since Apr 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/hcl109080/DES)[ Packagist](https://packagist.org/packages/hcl109080/des)[ RSS](/packages/hcl109080-des/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

DES 加解密
=======

[](#des-加解密)

安装
--

[](#安装)

- composer require hcl109080/des:dev-master

使用
--

[](#使用)

- 使用 DES-CBC 加解密

    ```
    $key = '33key123456';

        $iv = 'iv12345p';

        $des = new Des($key, 'DES-CBC', Des::OUTPUT_BASE64, $iv);

        echo $base64Sign = $des->encrypt('Hello DES CBC');	// 加密

        echo "\n";

        echo($des->decrypt($base64Sign)); 	// 解密
    ```
- 使用 DES ECB 加解密

    ```
    $key = '33key123456';

        $iv = 'iv12345p';

        $des = new Des($key, 'DES-ECB', Des::OUTPUT_HEX);

        echo $base64Sign = $des->encrypt('Hello DES ECB'); // 加密

        echo "\n";

        echo $des->decrypt($base64Sign); // 解密
    ```

###  Health Score

18

—

LowBetter than 7% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/28293738?v=4)[hcl109080](/maintainers/hcl109080)[@hcl109080](https://github.com/hcl109080)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/hcl109080-des/health.svg)

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

###  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)[sansec/magento2-module-shield

15218.6k](/packages/sansec-magento2-module-shield)[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)
