UNPKG

xs-blowfish

Version:
23 lines (15 loc) 523 B
blowfish.js =========== Please visit [the blowfish.js home page](http://dren.ch/js_blowfish/) 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 ```