blowfish

Blowfish encryption in JavaScript


Keywords
blowfish, bf, encryption, decryption
License
MIT
Install
npm install blowfish@1.0.1

Documentation

blowfish.js

Please visit the blowfish.js home page for more information.

  var padding = '\u0006';
  var bf = new Blowfish('this is the key', padding);
  // var bf = new Blowfish('this is the key'); // default padding is '\u0000'

  var encoding = bf.encrypt('what is that');
  console.log(encoding);
  console.log(bf.decrypt(encoding));