Greasy Fork

Shined up real nice.

Blowfish cipher

Encrypt and decrypt data using Blowfish block cipher. This library uses arrays of 8-bit numbers for data, key and init vector (IV).

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://greasyfork.org/scripts/32981-blowfish-cipher/code/Blowfish%20cipher.js?version=216422

Advertisement
Author
Dejan Tomić
Ratings
0 0 0
Version
0.0.1.20170906183048
Created
Updated
License
N/A
Applies to
All sites

Author's Description

Blowfish block cipher. Supports ECB and CBC modes.
Works on byte arrays. Can encrypt and decrypt in-place, or return a new copy of the data.

Based on this source (licensed under MIT): https://github.com/agorlov/javascript-blowfish
that works with UTF-8 strings.