encon

0.0.1 • Public • Published

Encon is an optionally-encrypted config format, built on top of JSON.

Install

npm install encon

# or
yarn add encon

Usage (high level)

TODO: implement and document.

Usage (low level)

const { Password } = require('encon');

let pass = new Password('strongpassword');

pass.encrypt(Buffer.from('Hello, world!')).then(encrypted => {
  console.log(encrypted.toString('hex'));

  pass.decrypt(encrypted).then(plainBuffer => {
    let plain = plainBuffer.toString();
    console.log(plain); // 'Hello, world!'
  });
});

Readme

Keywords

none

Package Sidebar

Install

npm i encon

Weekly Downloads

3

Version

0.0.1

License

MIT

Unpacked Size

4.1 kB

Total Files

4

Last publish

Collaborators

  • greenjello