A basic encryption/decryption script/API for resting data for Node.js users.
Slightly modified the work of Levi Gross.
Gather basic256.js first, copy all files inside to your project folder/direcory.
And do this (If you have a Linux enviroment):
./runMeFirst.sh
Then make your script connected. Example:
var crypter = require("./basic256.js");
var blob = crypter.enc.run("FOO"); // This encrypts the string "FOO".
console.log(blob); // This will show the encrypted string.
var unblob = crypter.dec.run(blob); // This decrypts the encrypted string.
console.log(unblob); // This will show the decrypted string. (Which in this case, it is "FOO")