2.13.1 • Published 2 years ago
@wii/encrypt v2.13.1
Encrypt
JavaScript
慢Hash
加密
Install
npm i @wii/encrypt
API
import { encrypt, getSignature } from '@wii/encrypt';
encrypt(str, salt)
参数 是否必须 说明 str
✅ 明文 salt
✅ 盐 getSignature(str, saltHash, timestamp)
参数 是否必须 说明 str
✅ 明文 saltHash
✅ 密文(通过 encrypt 函数加密获得) timestamp
✅ 时间戳