@arispati/src-crypto

0.1.1 • Public • Published

@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

Package Sidebar

Install

npm i @arispati/src-crypto

Weekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

3.02 kB

Total Files

5

Last publish

Collaborators

  • arispati