Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blowfish support #188

Open
sayem314 opened this issue Sep 16, 2019 · 2 comments
Open

Blowfish support #188

sayem314 opened this issue Sep 16, 2019 · 2 comments

Comments

@sayem314
Copy link

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();
}
@rawr51919
Copy link

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.

@rawr51919
Copy link

Seeing how the repo is implemented, though, it'd require a polyfill for your usage case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants