lxj-crypto

0.0.1 • Public • Published

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.

npm i crypto-wrapper -S

then, like this:

const crypto = require('crypto-wrapper');
crypto.md5("xx");

crypto.aesEncypt("data", "key");

Package Sidebar

Install

npm i lxj-crypto

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

15.3 kB

Total Files

5

Last publish

Collaborators

  • li-xiaojun