{"library":"javascript-blowfish","type":"library","category":null,"description":"This library implements the Blowfish symmetric-key block cipher for JavaScript, supporting both browser and Node.js environments. Currently at version 1.0.4, the package provides basic encryption and decryption capabilities, including Electronic Codebook (ECB) and Cipher Block Chaining (CBC) modes. A key feature is its robust handling of UTF-8 strings and automatic zero-padding to ensure input data conforms to Blowfish's 8-byte block length, with a utility to `trimZeroes` after decryption for text. It also offers built-in base64 encoding/decoding for handling the binary output of encryption. While Blowfish was designed for speed and flexibility with variable key lengths (32-448 bits) in 1993, its 64-bit block size is now considered a security weakness due to susceptibility to 'Sweet32' birthday attacks, especially for large data volumes (over 4GB). It's generally recommended for legacy systems or specific constrained environments rather than new applications, where modern ciphers like AES or Twofish are preferred. The library itself appears to be in a maintenance or inactive state, with no recent updates since 2018.","language":"javascript","status":"maintenance","version":"1.0.4","tags":["javascript","node","js","blowfish","encryption","decryption","encypher","decypher","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install javascript-blowfish","imports":["import { Blowfish } from 'javascript-blowfish';","const bf = new Blowfish(\"secret key\");","const Blowfish = require('javascript-blowfish');"]},{"cmd":"yarn add javascript-blowfish","imports":[]},{"cmd":"pnpm add javascript-blowfish","imports":[]}],"homepage":null,"github":"https://github.com/agorlov/javascript-blowfish","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/javascript-blowfish","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/javascript-blowfish/compatibility"}}