An open API service indexing awesome lists of open source software.

https://github.com/quansitech/qs-node-crypt

node加密工具库
https://github.com/quansitech/qs-node-crypt

Last synced: 10 months ago
JSON representation

node加密工具库

Awesome Lists containing this project

README

          

# qs-crypt
node加密

## 安装
```node
npm i @quansitech/qs-crypt
```

## AES-256-CBC
```node
const crypt = require('@quansitech/qs-crypt');

const key="1234567"
const plainText="hello world"

//加密
const cipherText = crypt.AesCBC.encrypt(plainText, key);

//解密
crypt.AesCBC.decrypt(cipherText, key);
```