-
Notifications
You must be signed in to change notification settings - Fork 519
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
deprecated warnings #1038
Comments
I'm having this issue as well another StackOverflow post suggested the same |
I'm encountering the same problem with the 'npmlog' package. Upon further investigation, I noticed that the package has been archived. It seems that this could be causing the issue.
Node version: v20.11.0 |
@cristian2213 @Varun-Chakraborty try using bcryptjs |
@mathdebate09 that project was last updated 4 year ago, is it being maintained? |
@Varun-Chakraborty i don't exactly know but popular OS communities (theodinproject & fullstackopen) said it's a safe alternative so I didn't check about it |
@mathdebate09 oh great! using it for sometime now, looks good to me |
It's getting worst
Last publish of bcryptjs is 7 years ago. Might be considered as "It just works" but the fact that there is no reviews raises the following question: "What happens if a security issue is discovered?". It seems that to produce an update the author would have to rewrite a big chunk of it.
|
Yep, that's the point. |
I might be mistaken but it seems all of the deprecated warnings are from dependencies in |
Read about it, and what I understood is since this version of bcrypt is written in C++ we would need a binary to get it working with Node.js, so either we compile it on our own using C++ compiler or if available for our OS, use this prebuilt binary from node-pre-gyp, so updating that is not a concern since bcrypt itself is some 9 to 10 months old, what we were talking about are the packages like inflight, which is causing memory leak and crashing up the program |
@Varun-Chakraborty |
Hello guys, I did this to my package.json and the warning about inflight disappeared. Is this okay? These were the only warnings that showed up after installing: " What do you guys think? |
Well.. not knowing anything about it I'm trying this 😃 Am I making headaches for myself later..? |
I don't know what exactly the overrides do, will look into it later, but as the name suggest it should be that it overrides the actual dependency, but since the overriden dependency is many major updates different it would break bcrypt, if there's some breaking change in packages that bcrypt didn't handled since its supposed to run on its actual dependency |
I finally got round to testing this and it seems to be working fine, I will chuck my test code in here and a screenshot in case I am wrong and some features do not work but I doubt it seeing how simple bcrypt is to use.
This is running just after my project starts listening for connections so please ignore everything before it dumps the hash. I put a bunch of newlines in to make it easier to pick out. If you modify your package.json as @vnc-tech suggests then run |
Wow! wonderful support from everyone. But bcrypt why now????? |
If you're starting a new project and looking to implement secure password hashing, feel free to try out the argon2 package, which is readily available on npm for Node.js. Argon2 is specifically designed to counter modern hardware-based attacks (such as those using GPUs and ASICs) more effectively than bcrypt. |
Subject: Introducing cryptography-password-js - A modern alternative to bcryptjs Hello everyone, I’ve been following the discussion here and I understand the frustration regarding the issues with bcryptjs. Many of the challenges mentioned—such as performance and compatibility—are certainly valid concerns in today’s development environment. To address some of these pain points, I’ve created a new library called cryptography-password-js, which was inspired by bcryptjs but designed with some important improvements that I believe could be beneficial for modern projects. Here are some key features of cryptography-password-js:
I’ve also run some benchmarks, and the results have been quite promising, particularly in terms of performance and memory usage. Given the nature of the concerns discussed here, I believe cryptography-password-js could be a great alternative to explore. I would like to invite you all to try out cryptography-password-js, give it a test, and share your feedback. If you find it helpful and are interested, feel free to contribute to the project! You can check it out on GitHub here: https://github.com/dev-garcia/cryptography-password-js.git Your feedback and contributions would be highly appreciated as we continue to improve the project. |
Hey, just tried installing
bcrypt
to my project and here's the deprecation warnings I am getting, just to notify if any of these are security issues:npm i bcrypt
just for the reference, I have node of version v20.10.0
The text was updated successfully, but these errors were encountered: