@li0ard/blowfish
Blowfish cipher implementation in pure TypeScript
docs
# from NPM
npm i @li0ard/blowfish
# from JSR
bunx jsr i @li0ard/blowfish
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 [ ... ]