https://github.com/junixapp/crypto-wrapper
A simple wrapper for node crypto module, zero dependency, easy to use!
https://github.com/junixapp/crypto-wrapper
Last synced: over 1 year ago
JSON representation
A simple wrapper for node crypto module, zero dependency, easy to use!
- Host: GitHub
- URL: https://github.com/junixapp/crypto-wrapper
- Owner: junixapp
- License: apache-2.0
- Created: 2018-05-23T03:08:52.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-23T03:36:23.000Z (about 8 years ago)
- Last Synced: 2025-03-03T03:19:25.162Z (over 1 year ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## lxj-crypto
A simple wrapper for node crypto module, zero dependency, very easy to use!
## methods
- md5
- sha1
- sha256
- sha512
- md5Hmac
- sha1Hmac
- sha256Hmac
- sha512Hmac
- aesEncypt
- aesDecypt
- rsaEncypt
- rsaDecypt
- base64Encode
- base64Decode
## how to use
first, install.
```bash
npm i lxj-crypto -S
```
then, like this:
```
const crypto = require('lxj-crypto');
crypto.md5("xx");
crypto.aesEncypt("data", "key");
```