xs-blowfish
v2.0.0
Published
Blowfish encryption in JavaScript
Downloads
139
Maintainers
Readme
blowfish.js
Please visit the blowfish.js home page for more information.
var Blowfish = require('../blowfish');
var bf = new Blowfish('jaas is the way');
var encoding = bf.encrypt('Config_RsA+');
console.log(encoding);
// D93DDE3FA9F885DED0258ACB404C510A
var decoding = bf.decrypt(encoding);
console.log(JSON.stringify(decoding));
// Config_RsA+
console.log(bf.decrypt('0a945741a53e60877183c1d314f5102209f526570957572b'));
// ssheartTB007writer