0.0.1 • Published 4 years ago

encon v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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!'
  });
});