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

Add Configurable Number of Iterations for PBKDF2 Design doc #17

Merged
merged 4 commits into from
Jan 8, 2025

Conversation

droideck
Copy link
Member

No description provided.

Copy link
Contributor

@tbordaz tbordaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

- **Minimum Iterations**: 10,000
- **Maximum Iterations**: 10,000,000

These defaults and limits ensure a baseline security level and guard against extreme performance degradation.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while that's a good goal, what was the exact criterion?

For interactive systems the recommendation is that it should require about 100ms of calculation time on a modern CPU. Good 7 years ago 1M iterations could be calculated at around a second (https://bugzilla.mozilla.org/show_bug.cgi?id=1278071 )

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll test it a bit more, and I think I'll increase the default (even though initially the PR was just about the setting, I think it'll be better to handle the default increase here, too as we haven't done it in some time)

@droideck droideck merged commit ded59e2 into main Jan 8, 2025
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.

3 participants