@li0ard/blowfish
v0.1.1
Published
Blowfish cipher implementation in pure TypeScript
Readme
Installation
# from NPM
npm i @li0ard/blowfish
# from JSR
bunx jsr i @li0ard/blowfishFeatures
- Provides simple and modern API
- Most of the APIs are strictly typed
- Fully complies with FIPS 46-3 standard
- Supports Bun, Node.js, Deno, Browsers
Examples
import { Blowfish } from "@li0ard/blowfish";
const cipher = new Blowfish(new Uint8Array(8));
const encrypted = cipher.encrypt(new Uint8Array(8));
console.log(encrypted); // Uint8Array [ ... ]
const decrypted = cipher.decrypt(encrypted);
console.log(decrypted); // Uint8Array [ ... ]