https://github.com/quansitech/qs-node-crypt
node加密工具库
https://github.com/quansitech/qs-node-crypt
Last synced: 10 months ago
JSON representation
node加密工具库
- Host: GitHub
- URL: https://github.com/quansitech/qs-node-crypt
- Owner: quansitech
- Created: 2020-11-13T06:51:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-13T07:38:21.000Z (over 5 years ago)
- Last Synced: 2025-08-08T21:23:22.234Z (11 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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);
```