PHPackages                             foryoufeng/md5sign - 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. foryoufeng/md5sign

ActiveLibrary[Security](/categories/security)

foryoufeng/md5sign
==================

A MD5 encryption algorithm

1.0.0(8y ago)1433PHP

Since Apr 12Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

md5Sign
=======

[](#md5sign)

A MD5 encryption algorithm/一个md5加密的签名算法
---------------------------------------

[](#a-md5-encryption-algorithm一个md5加密的签名算法)

[查看中文文档](./README_zh_CN.md "查看中文文档")

> MD5 algorithm is used to verify and add data to the data, so that different languages, such as PHP, Java and JS, can communicate with each other between API.

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

[](#installation)

Require this package in your `composer.json` or install it by running:

```
composer require foryoufeng/md5Sign

```

Basic Usage
-----------

[](#basic-usage)

to sign your data

```
use Foryoufeng\Md5Sign\Md5Utils;

$api_key='123456';//you can get it from your database or .env file or config.php and so on
$data=[
    'user_id'=>1,
    'name'=>'wuqiang'
];
$data=Md5Utils::sign($data,$api_key);
var_dump($data); //you can see what it is look like
```

to verify your data

```
use Foryoufeng\Md5Sign\Md5Utils;

$sign=[
    'user_id'=>1,
    'name'=>'wuqiang',
    'timeStamp'=>1523519147,
    'sign'=>'4d02bfa8bcbcfb88f99a98e05aa75b33',
];
$flag=Md5Utils::verify($sign,$api_key);
var_dump($flag);
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

2950d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b809abc60e2f4e00e3a8797ef6316eabfdd88a8b0282e3971191d9fa7077354?d=identicon)[foryoufeng](/maintainers/foryoufeng)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/foryoufeng-md5sign/health.svg)

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/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.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/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)
