@astronomer/cryptobject

2.0.1 • Public • Published

cryptobject

CircleCI

cryptobject provides AES256 encryption to every string value in an object.

Installation

npm install --save cryptobject

Usage

To use cryptobject, simply import the package and call one of encrypt or decrypt to create encrypt or decrypt an object.

Usage

const { encrypt, decrypt } = require('cryptobject')('passphrase');

const obj = { 'key': 'value' };

const encryptedObject = encrypt(obj);
const decrytpedObject = decrypt(encryptedObject);

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @astronomer/cryptobject

Weekly Downloads

3

Version

2.0.1

License

MIT

Last publish

Collaborators

  • ryanahamilton
  • samblackk
  • gregatastronomer