-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
RFC is no longer a draft (RFC9106); default parameter choice out of date #101
Comments
Some possible implementations:
|
Hi Brendan, sorry for the long silence. When you opened this issue I was traveling (!!!!) and I've been procrastinating on a release ever since because it's a big topic. I think the best way forward is making the low-mem case the default and allow to create hashers from It was so clear that they had to publish the final version a few days after I published a basically non-release. 🤪 |
Would this provide a default high memory from argon2 import PasswordHasher, HighMemoryParameters
high_mem_hasher = PasswordHasher.from_parameters(HighMemoryParameters) |
Yeah, I’d supply both RFC options at least. Maybe additionally the current defaults for people who want to keep them. Could live in a separate module |
Now that Argon2 is a proper RFC, we need to support it. To stay more agile, this introduces the concept of profiles, based on the existing `Parameters` class. Fixes #101 Co-authored-by: Brendan McDonnell <[email protected]>
Now that Argon2 is a proper RFC, we need to support it. To stay more agile, this introduces the concept of profiles, based on the existing `Parameters` class. Fixes #101 Co-authored-by: Brendan McDonnell <[email protected]>
Now that Argon2 is a proper RFC, we need to support it. To stay more agile, this introduces the concept of profiles, based on the existing `Parameters` class. Fixes #101 Co-authored-by: Brendan McDonnell <[email protected]>
Now that Argon2 is a proper RFC, we need to support it. To stay more agile, this introduces the concept of profiles, based on the existing `Parameters` class. Fixes #101 Co-authored-by: Brendan McDonnell <[email protected]>
Now that Argon2 is a proper RFC, we need to support it. To stay more agile, this introduces the concept of profiles, based on the existing `Parameters` class. Fixes #101 Co-authored-by: Brendan McDonnell <[email protected]> Co-authored-by: Brendan McDonnell <[email protected]>
Argon2 now has an official informational RFC, not just a draft: RFC 9106. This change occurred on September 7th.
The previous RFC draft is referenced in two locations:
and default parameters (no longer in line with the RFC) are implemented in PasswordHasher.
I believe the parameter choice changes were made in #41 in 2018. Since then, the draft went through revisions 4 through 13 before being marked as done. Since then, the Parameter Choice section has changed (diff here).
The RFC now recommends the following:
Major changes:
argon-cffi
's parameter choice should be updated to reflect the official RFC and documentation should be updated.Currently, the default parameters are as follows:
They should be adapted to one of the recommended general use options:
It may also be useful to set some flag for which set of default parameters may be preferred.
Finally, having a utility to automatically find
t
given the other parameters, as per the following:It's time for everyone to make good use of
check_needs_rehash
!The text was updated successfully, but these errors were encountered: