0.1.1 • Published 4 years ago

@arispati/src-crypto v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

@arispati/src-crypto

SRC Crypto Library for node.js

How to Install

  • Install with npm
npm install @arispati/src-crypto

How to Use

import SrcCrypto from '@arispati/src-crypto'

// Set the secret key
let secretKey = 's3cr3tK3y' // default secret key

// Initilize CryptoAES Class
let crypto = new SrcCrypto(secretKey)

// Encrypt
let encrypt = crypto.encrypt('@arispati/src-crypto')
// di92SjlPSnFab3JhclI2U0Q5K1k3SVFncTV4VTVzdDlkZTNZT09TV21Jcz0=

// Decrypt
let decrypt = crypto.decrypt(encrypt)
// "@arispati/src-crypto"

Tests

  • Install the dev dependencies
npm install
  • Run the test command
npm test