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

Modern cleanup #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Modern cleanup #2

wants to merge 2 commits into from

Conversation

jonbarrow
Copy link

Removed the deprecated Buffer constructor calls and replaced with Buffer.from() and Buffer.alloc()

Removed unused toBinaryString from buffer-tools

Changed from cipher algorithm alias to real names (aes128, aes192, and aes256 to aes-128-cbc, aes-192-cbc, and aes-256-cbc) to improve compatibility with Electron, see electron/electron#16195 for more details

Now allows users to provide their own cipher algorithm name. To keep backwards compatibility, if an algorithm is not given then defaults to the old lookup table method

Condensed getMessageBlock and getPaddedMessageBlock into one function to remove duplicate code

And finally just some general changes to make things a bit more modern/readable

Removed the deprecated Buffer constructor calls and replaced with `Buffer.from()` and `Buffer.alloc()`

Removed unused `toBinaryString` from buffer-tools

Changed from cipher algorithm alias to real names (`aes128`, `aes192`, and `aes256` to `aes-128-cbc`, `aes-192-cbc`, and `aes-256-cbc`) to improve compatibility with Electron, see electron/electron#16195 for more details

Now allows users to provide their own cipher algorithm name. To keep backwards compatibility, if an algorithm is not given then defaults to the old lookup table method
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

Successfully merging this pull request may close these issues.

None yet

1 participant