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

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!

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");
```