@wii/encrypt
v2.13.1
Published
> `JavaScript` 慢 `Hash` 加密
Downloads
6
Keywords
Readme
Encrypt
JavaScript慢Hash加密
Install
npm i @wii/encryptAPI
import { encrypt, getSignature } from '@wii/encrypt';encrypt(str, salt)| 参数 | 是否必须 | 说明 | | :----- | :------- | :--- | |
str| ✅ | 明文 | |salt| ✅ | 盐 |getSignature(str, saltHash, timestamp)| 参数 | 是否必须 | 说明 | | :---------- | :------- | :-------------------------------- | |
str| ✅ | 明文 | |saltHash| ✅ | 密文(通过 encrypt 函数加密获得) | |timestamp| ✅ | 时间戳 |
