javascript-blowfish
javascript-blowfish copied to clipboard
Incorrect result with CBC
I run code from your example
const {Blowfish} = require('javascript-blowfish');
const bf = new Blowfish("key", "cbc");
// Encrypt and encode to base64
const encrypted = bf.encrypt("secret message", "cbcvecto");
const decrypted = bf.decrypt(encrypted, "cbcvecto");
console.log(decrypted);
Result of output is secret m]8⑿餸
Node version 12.16.1 Ubuntu 18.04.1
There is a change suggested in #5 but even with that change I can't seem to have a correct result with CBC.