Skip to content

Instantly share code, notes, and snippets.

@yne
Last active August 14, 2023 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yne/4767cbee032cf214ce8cea7be6bd5b20 to your computer and use it in GitHub Desktop.
Save yne/4767cbee032cf214ce8cea7be6bd5b20 to your computer and use it in GitHub Desktop.
dzr.Decode.blowfish
const Blowfish = (await import('./egoroof_blowfish-4.0.1.mjs')).Blowfish;
const bf = new Blowfish(Buffer.from(keys_array), Blowfish.MODE.CBC, Blowfish.PADDING.NULL);
bf.setIv(new Uint8Array([0, 1, 2, 3, 4, 5, 6, 7]));
return bf.decode(buf_in, Blowfish.TYPE.UINT8_ARRAY);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment