blowfish-security-lib

1.0.1 • Public • Published

blowfish-security-lib

Blowfish encryption in javascript.

Installation

To install the module using NPM:

npm install blowfish-security-lib --save

Examples

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);

Testing

npm test

License

GPL 3.0

Package Sidebar

Install

npm i blowfish-security-lib

Weekly Downloads

6

Version

1.0.1

License

GPL-3.0

Last publish

Collaborators

  • sureshkumarnagarajanmca