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

Save bcrypt password checks in local memory #6

Merged
merged 1 commit into from
Oct 17, 2023
Merged

Conversation

Alkarex
Copy link
Member

@Alkarex Alkarex commented Oct 16, 2023

bcrypt is slow by design to protect passwords stored on disk.
So for increased performance, this PR caches the bcrypt checks in local memory of a given node instance.
We do not attempt to protect memory operations anyway.
https://security.stackexchange.com/questions/10520/is-it-safe-or-even-common-to-cache-bcrypt-checks-in-memory/10522#10522

@Alkarex Alkarex merged commit f621c92 into main Oct 17, 2023
2 checks passed
@Alkarex Alkarex deleted the bcrypt-cache branch October 17, 2023 10:28
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.

1 participant