# secure-keys

> Encrypt/Decrypt the values of a given object

Latest version **1.0.0** (published 2016-02-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install secure-keys
pnpm add secure-keys
yarn add secure-keys
bun add secure-keys
```

## 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 | 1.0.0 |
| Published | 2016-02-02 |
| First published | 2016-02-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jarrett Cruger |
| Maintainers | jcrugzz |
| Keywords | secure-keys, conversion, crypto, secure, config |

## Links

- npm: https://www.npmjs.com/package/secure-keys
- npm.io page: https://npm.io/package/secure-keys

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-02-02

## README

# secure-keys

[![build
status](https://travis-ci.org/jcrugzz/secure-keys.svg?branch=master)](http://travis-ci.org/jcrugzz/secure-keys)

A simple module that encrypts/decrypts the keys of a given object

## install
```sh
npm i secure-keys --save
```

## usage

```js

var SecK = require('secure-keys');

var sec = new SecK({
  secret: 'BEGIN RSA', // Text of key used for encrypting/decrypting
  format: JSON, // optional (defaults to JSON): An object with `stringify` and `parse` methods
  alg: 'aes-256-ctr' //optional (this is default) Algorithm to use for encrypt/decrypt
});

var encryptedObj = sec.encrypt({
  myConfig: 'values',
  needTo: 'be safe'
});

var decryptedObj = sec.decrypt(encryptedObj);
```

## LICENSE
MIT

---------------

This code was yanked out of work by
[@indexzero](https://github.com/indexzero) for
[`nconf`](https://github.com/indexzero/nconf)

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