# @astronomer/cryptobject

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

Latest version **2.0.1** (published 2017-05-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @astronomer/cryptobject
pnpm add @astronomer/cryptobject
yarn add @astronomer/cryptobject
bun add @astronomer/cryptobject
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2017-05-09 |
| First published | 2017-05-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Author | Astronomer Inc |
| Maintainers | mikeperry, aloisatastronomer, gregatastronomer |

## Links

- npm: https://www.npmjs.com/package/@astronomer/cryptobject
- npm.io page: https://npm.io/package/@astronomer/cryptobject

## Dependencies (2)

- [traverse](https://npm.io/package/traverse.md) ^0.6.6
- [crypto-js](https://npm.io/package/crypto-js.md) ^3.1.5

## Recent versions

- 2.0.1 (latest) — 2017-05-09
- 2.0.0 — 2017-05-09

## README

# cryptobject
[![CircleCI](https://circleci.com/gh/astronomerio/cryptobject.svg?style=svg)](https://circleci.com/gh/astronomerio/cryptobject)

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
```javascript
const { encrypt, decrypt } = require('cryptobject')('passphrase');

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

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

# License
MIT

---
_Source: https://npm.io/package/@astronomer/cryptobject · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
