1.3.0 • Published 8 months ago

raptor-blowfish v1.3.0

Weekly downloads
5
License
MIT
Repository
github
Last release
8 months ago

npm

Raptor-Blowfish 🐡

A TypesScript implementation of the Blowfish cipher to encrypt/decrypt messages in ECB and CBC modes.

Installation

npm install raptor-blowfish

Usage

import { Fish } from 'raptor-blowfish';

//ECB
const enc = Fish.createCipher('myLovelyKey');
const encrypted = enc.encrypt('Toxic'); // +OK O3mP5.mY3eCZ

const dec = Fish.createDecipher('myLovelyKey');
const decrypted = dec.decrypt('+OK O3mP5.mY3eCZ') // Toxic

//CBC
const cbcEnc = Fish.createCipher('cbc:myLovelyKey');
const cbcEncrypted =  enc.encrypt('Toxic');

const cbcDec = Fish.createDecipher('cbc:myLovelyKey');
const cbcDecrypted = dec.decrypt(cbcEncrypted) // Toxic
1.3.0

8 months ago

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

2 years ago

1.0.0

3 years ago