Blowfish encryption in javascript.
To install the module using NPM:
npm install blowfish-security-lib --save
To encrypt a message
var Blowfish = require('./blowfish');
var bf = new Blowfish("secret key");
var encrypted = bf.encrypt("text");
console.log(encrypted);
To decrypt a ciphertext
var Blowfish = require('./blowfish');
var bf = new Blowfish("secret key");
var encrypted = bf.encrypt("text");
console.log(encrypted);
var decrypted = bf.decrypt(encrypted);
console.log(decrypted);
npm test