-
Notifications
You must be signed in to change notification settings - Fork 444
replace bcrypt with scrypt #1015
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
base: main
Are you sure you want to change the base?
Conversation
…rithm built into node crypto module for password hashing and validation refactor(validation): update password schema to reflect scrypt limits refactor(tests): use crypto for password hashing in test utilities
I love built-in solutions. Thanks!
|
sure, I will write a decision doc also looks like in |
How does that compare with bcrypt? That sounds like a lot of memory. |
|
I also plan to add the |
I forgot to mention how much memory |
…d usage (~64 MiB), bypassing Node’s 32 MiB default limit.
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.
Thanks a lot for this! I'm a little bit concerned that this is going to cause issues for people running the Epic Stack within the free allowances. Can you show me what the Firecracker graphs look like for memory when passwords are being checked?
Sure, but I think there will no problem for people running Epic Stack within free allowances as the scrypt parameters carefully choosed so that password safety don't get compromised and still stay within free limits for eg vercel in their free plan gives 1GB of memory for Nodejs Functions |
I'm thinking about Fly.io (which is where the Epic Stack is deployed). They have unofficial "forgiveness" of charges less than $5, https://fly.io/calculator That gives you 256GB of memory. It's a tight budget for Node.js-based apps like ours. Most people have to bump that up pretty quick for real stuff, but I'd like simple projects/demos to be able to stay under that threshold. |
But this is specifically for fly right I was saying something during the development so that we can know how much memory we are consuming |
I'm not concerned about development. People have plenty of memory on their machines. I'm concerned about production. |
well in that case then you only can test the app in production as I don't have fly account, and I think the unofficial "forgiveness" of charges less than $5 only applies to the account which were created before the introduced pay as you go pricing |
refactor(auth): replace bcrypt with much better password hashing algorithm built into node crypto module for password hashing and validation
refactor(validation): update password schema to reflect scrypt limits
refactor(tests): use crypto for password hashing in test utilities