-
Notifications
You must be signed in to change notification settings - Fork 299
Fix issue with buffer concatenation while using scrypt #135
Conversation
👍 |
Hi @chaitanyapotti, thanks for the fix! Do you have got any idea why this was not caught by the If you have got an idea, could you provide a simple test case along which would have failed without your fix? Thanks! |
Here's a simple repro case.
Most of us use webpack for bundling and hence are facing the issue. I hope this explains the issue |
@chaitanyapotti Thanks, that's a great explanation! 😄 Will merge here and prepare a bugfix release during the week, eventually we will include 1-2 other things. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Just to let you know: we'll finish on some investigation being done right now in #138 around failing CI tests also happened here before we will do a bugfix release. |
(so therefore the delay) |
While using scrypt, derivedKey is of type Uint8Array. While concatenating, Buffer checks for isBuffer and throws.!
This PR fixes that