3.0.7 • Published 5 years ago

cipherjson v3.0.7

Weekly downloads
8
License
MIT
Repository
github
Last release
5 years ago

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

3.0.7

5 years ago

3.0.6

5 years ago

3.0.5

5 years ago

3.0.4

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.1.0

7 years ago

2.0.4

7 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.0

8 years ago

1.1.0

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago