@astronomer/cryptobject

Traverse a given object and encrypt/decrypt the strings with AES.

Usage no npm install needed!

<script type="module">
  import astronomerCryptobject from 'https://cdn.skypack.dev/@astronomer/cryptobject';
</script>

README

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