
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@rx-frontend/php-sign
Advanced tools
用于与PHP端对接使用的接口参数(json或form)签名生成工具
支持浏览器和uni小程序
pnpm i @rx-frontend/php-sign
yarn add @rx-frontend/php-sign
npm i @rx-frontend/php-sign
import { sign } from '@rx-frontend/php-sign';
const SIGN_KEY = 'sepveneto';
sign.SIGN_KEY = SIGN_KEY;
const mock = { id: 1, name: 'vv' };
sign(mock)
| 名称 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
| SIGN_KEY | string | ✔ | - | 签名密钥 |
| log | boolean | ✘ | - | 是否需要在控制台输出md5加密前的结果 |
| reserveFalse | boolean | ✘ | - | 签名时是否保留false |
| reserveEmptyString | boolean | ✘ | - | 签名时是否保留空字符串 |
| reserveNull | boolean | ✘ | - | 签名时是否保留null |
| normalizeTrue | string | number | boolean | ✘ | 1 | 签名时将true转换成其它内容 |
除原始参数外,会额外附带随机字符串nonce和时间戳timestamp
{
...res,
nonce: string,
timestamp: string,
}
timestamp和nonce,因此如果原始参数中带有timestamp和nonce会覆盖原始参数的内容Blob的值会参与签名,比如const file = new File(['foo'], 'foo.txt', {
type: 'text/plain',
})
const form = new FormData()
form.append('file', file)
form.append('name', 'sepveneto')
最终参与签名的字段是name,nonce和timestamp
FAQs
用于与PHP端对接使用的接口参数(`json`或`form`)签名生成工具
We found that @rx-frontend/php-sign demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.