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

Allow hashed passwords #23

Closed

Conversation

ashokdelphia
Copy link

I'd like to use simple basic auth for a service, but without storing the plain-text password on the host.

This allows setting a PBKDF2-derived hash value in place of the password, with some optional configuration parameters to choose the algorithm, salt and number of rounds.

I believe this also avoids the variable-time password comparison described in #3 / #21, when configured to use a hashed password.

Locally with python 3.7.3, the old code fails with:

    ModuleNotFoundError: No module named 'flask.ext'
I'd like to re-use check_username for hashed passwords.
This avoids needing to store the plain password on the service that's accepting basic auth.

It should also avoid problems with direct comparison of passwords leading to information leakage due to variable-time string comparisons.
@ashokdelphia
Copy link
Author

I'll need to come up with a different way to handle this to support python 2.6 and 3.3

@ashokdelphia
Copy link
Author

I doubt I'll ever find time to devote to making this work on really old versions of Python.

If you drop support for versions past their end-of-life, then this may be useful to bring back.

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