Open sayem314 opened 5 years ago
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
How do I do this?