1.5.0 • Published 6 years ago

crypto-aes-core v1.5.0

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

这是一款AES加密、解密插件

基于crypto-js的一款轻量、好用加密解密插件,适用于长连接、聊天等加密场景

API

1. encrypt 解密

nametypedefaultdescription
AESKEYString''前后端加密key
dataALL''需要加密的参数

2. decrypt 解密

nametypedefaultdescription
AESKEYString''前后端加密key
dataALL''需要加密的参数

install

NPM

调用

npm install crypto-aes-core

import CryptoAes from 'crypto-aes-core'

<!-- 加密 -->
CryptoAes.encrypt(encryptedData, AESKEY)]

<!-- 解密 -->
CryptoAes.decrypt(decryptedData, AESKEY)]
1.5.0

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago