Bare-bones Nodejs crypto module abstraction
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
README.md
index.js
package.json

README.md

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