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

DeprecationWarning: Buffer() is deprecated due to security and usability issues #150

Closed
dilippatidar123 opened this issue Jul 20, 2020 · 2 comments
Assignees

Comments

@dilippatidar123
Copy link

Hi Team,
We are getting following error.

DeprecationWarning: Buffer() is deprecated due to security and usability issues with node js latest version due to deprecated code in util.js

*/

Thanks

@cwardcode
Copy link

cwardcode commented Jul 29, 2020

We're receiving this as well. Has there been any established timeline for when this may be addressed?

It looks like the following lines are affected:

const modulus = new Buffer(modulusB64, 'base64');

const exponent = new Buffer(exponentB64, 'base64');
const der = new Buffer(encodedPubkey, 'hex')

EDIT: I actually went ahead and made this change myself since it was a pretty straight forward fix.

@jimmyjames
Copy link
Contributor

Fixed with #154. We'll target publishing a new version likely next week.

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

3 participants