基于crypto-js的一款轻量、好用加密解密插件,适用于长连接、聊天等加密场景
| name | type | default | description |
|---|---|---|---|
| AESKEY | String | '' | 前后端加密key |
| data | ALL | '' | 需要加密的参数 |
| name | type | default | description |
|---|---|---|---|
| AESKEY | String | '' | 前后端加密key |
| data | ALL | '' | 需要加密的参数 |
npm install crypto-aes-core
import CryptoAes from 'crypto-aes-core'
<!-- 加密 -->
CryptoAes.encrypt(encryptedData, AESKEY)]
<!-- 解密 -->
CryptoAes.decrypt(decryptedData, AESKEY)]
