easycrypto

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

npm install easycrypto
6 downloads in the last week
24 downloads in the last month

Build Status

easycrypto

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

Installation

 npm install easycrypto

Use

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

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

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

Algorithms

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

Testing

npm test

License

MIT License

npm loves you