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 argon2 as allowable password hash. #209

Merged
merged 1 commit into from
Nov 14, 2019
Merged

Add argon2 as allowable password hash. #209

merged 1 commit into from
Nov 14, 2019

Conversation

jwag956
Copy link
Member

@jwag956 jwag956 commented Nov 12, 2019

Simple really - and add a comment in the docs that you probably have to install an additional package to use it.

Argon2 implementation doesn't honor the deprecated passlib model of passing in options at hash time.

Added a new config variable SECURITY_PASSWORD_HASH_PASSLIB_OPTIONS that is used a CryptContext creation time
that is the new passlib model for how to set hash options.

Kept the SECURITY_PASSWORD_HASH_OPTIONS for backwards compat.

Argon2 doesn't need double hash - so add it to 'SINGLE' hash list.

Convert example to use argon2.

closes: #205
closes: #133

Simple really - and add a comment in the docs that you probably have to install an additional package to use it.

Argon2 implementation doesn't honor the deprecated passlib model of passing in options at hash time.

Added a new config variable SECURITY_PASSWORD_HASH_PASSLIB_OPTIONS that is used a CryptContext creation time
that is the new passlib model for how to set hash options.

Kept the SECURITY_PASSWORD_HASH_OPTIONS for backwards compat.

Argon2 doesn't need double hash - so add it to 'SINGLE' hash list.

Convert example to use argon2.

closes: #205
closes: #133
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.

Add support for Argon2 password hash Enhance PASSWORD_HASH_OPTIONS
1 participant