
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.
primary-crypto
Advanced tools
小学登录、注册加密
# 洋葱内部模块需要先设置本地 npmrc 为洋葱私有npm仓库。 npm config set registry https://npm.yc345.tv && npm login
npm install @guanghe/primary-crypto
#yarn add @guanghe/primary-crypto
import {encrypto} from '@guanghe/primary-crypto'
let phone = '15512341234';
let pwd = '123456';
let sign = encrypto(phone, pwd);
//使用sign作为密码传给服务服务器
import {decrypt} from '@guanghe/primary-crypto'
let {phone, pwd, timestamp} = decrypt(sign);
//pwd是md5签名的HASH 值 全大写
import {decrypt} from '@guanghe/primary-crypto'
let sign = '接收到的sign';
let phone = '15512341234';
let pwd = '123456';
let b = verify(sign, phone, pwd);
// 验证成功返回 true,失败返回 false
FAQs
primary crypto
We found that primary-crypto demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.