crypto-object
Encrypt Objects in Node.js, using built-in Crypto. Uses AES 256(CTR mode)
Usage
$ npm i --save https://github.com/Euthor/crypto-object.git
const CryptoObject = ; const cryptoObject = password: 'monica' // The encryption password - Required keys: 'foo' 'bar' // Which object keys to encrypt - Required; cryptoObject// `{ foo: '1a29e0e604', bar: '0523fee60f', id: 'x-001' }` cryptoObject// `{ foo: 'hello', bar: 'world', id: 'x-001' }`
Run the tests
$ npm install -g mocha$ npm test
Contributing?
# Always run the linter & fix code style before pushing $ npm run lint
Authors
- Nicholas Kyriakides, @nicholaswmin
Owners
License
The MIT License