encon
v0.0.1
Published
(optionally) encrypted object notation
Downloads
2
Readme
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!'
});
});