Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Doesn't support md5? #844

Open
lishu2006ll opened this issue Jul 2, 2019 · 1 comment
Open

Doesn't support md5? #844

lishu2006ll opened this issue Jul 2, 2019 · 1 comment

Comments

@lishu2006ll
Copy link

I use md5_crypt ,but tell me: ValueError: Invalid password hashing scheme 'md5_crypt'. Allowed values are bcrypt, des_crypt, pbkdf2_sha256, pbkdf2_sha512, sha256_crypt, sha512_crypt and plaintext

who knows why?

@jwag956
Copy link
Collaborator

jwag956 commented Jul 3, 2019

Yes - because the default list of SECURITY_PASSWORD_SCHEMES is:
"PASSWORD_SCHEMES": [
"bcrypt",
"des_crypt",
"pbkdf2_sha256",
"pbkdf2_sha512",
"sha256_crypt",
"sha512_crypt",
# And always last one...
"plaintext",
],

But of course - as stated here: https://passlib.readthedocs.io/en/stable/lib/passlib.hash.md5_crypt.html

dont' t use it. If you need to still honor OLD passwords encrypted with it - then simply add it to the list of PASSWORD_SCHEMES in your config.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants