crypto-browserify
crypto-browserify copied to clipboard
Blowfish support
How do I do this?
const decryptChunk = (chunk, blowFishKey) => {
let cipher = crypto.createDecipheriv('bf-cbc', blowFishKey, Buffer.from([0, 1, 2, 3, 4, 5, 6, 7]));
cipher.setAutoPadding(false);
return cipher.update(chunk, 'binary', 'binary') + cipher.final();
}
This could be added onto via the use of a JS Blowfish module and a PR. I'll see if there's any that might do the job here.
Seeing how the repo is implemented, though, it'd require a polyfill for your usage case