cipherjson

3.0.7 • Public • Published

cipherjson

Build Status npm Version JS Standard

Store json in encrypted format.

Installation

$ npm install cipherjson --save

Usage

'use strict'
 
const cipherjson = require('cipherjson')
 
const cipher = cipherjson('your-password')
 
cipher.write('secret.json', {
  DATABASE_PASSWORD: 'asekr324',
  EXTERNAL_API_SECRET: 'puaALiJ'
}).then(() => {
  /* ... */
 
  cipher.read('secret.json').then((data) => {
    /* ... */
  })
})
 
 

And secret.json would be looks like:

{
    "DATABASE_PASSWORD": "enciphered:fd871bb714f57481f229dd795a94ec34",
    "EXTERNAL_API_SECRET": "enciphered:asf09a;sdfj09asdf98u89jlj98u98"
}

License

This software is released under the MIT License.

Links

Readme

Keywords

Package Sidebar

Install

npm i cipherjson

Weekly Downloads

1

Version

3.0.7

License

MIT

Unpacked Size

19.2 kB

Total Files

31

Last publish

Collaborators

  • okunishinishi