Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Bare-bones Nodejs crypto module abstraction
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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

Something went wrong with that request. Please try again.