easycrypto

Bare-bones Nodejs crypto module abstraction providing a very simple and unsophisticated encryption API.

easycrypto

Bare-bones Nodejs crypto module abstraction providing a very simple and unsophisticated encryption API.

 npm install easycrypto
var easycrypto = require('easycrypto').getInstance();

var encrypted = easycrypto.encrypt('hello world', 'some random password');

var decrypt = easycrypto.decrypt(encrypted, 'some random password');

Defaults to aes-256-cbc however will support other OpenSSL algorithms your specific platform supports (per Nodes crypto documentation).

var easycrypto = require('easycrypto').getInstance({
  algorithm: 'aes128'
});
npm test

MIT License