dead simple. fast. light
- No need for heavy libraries. Using aes-256-cbc protocol.
- Simple to use.
- Customize it easily.
- Only 2 methodes
encrypt(string, optionalPass)
anddecrypt(string, optionalPass)
Simply install via npm:
npm install dead-simple-crypt
Load it and you're ready to go!
var deadSimpleCrypt = require('dead-simple-crypt');
var plain = "I see dead people!";
var blob = deadSimpleCrypt.encrypt(plain); //your encrypted string
deadSimpleCrypt.decrypt(blob); //back to original string
or, with optional password:
var pass = 'some password';
var plain = "I see dead people!";
var blob = deadSimpleCrypt.encrypt(plain, pass); //your encrypted string
deadSimpleCrypt.decrypt(blob, pass); //back to original string
This is best for simple use needs. In case you need more complicate solution do your research before.
Please do. Fork it, star it, share it and add your code to the project. Help others.
MIT