Hello I`ll try to change the default SHA encrypt system to MD5 in django.
I know.. SHA is better then MD5, but I NEED to use MD5.
How can I do this?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try putting in your settings:
This will store the passwords as:
And will use a salt.
If you need something different you’ll need to code your own hasher. Shouldn’t be hard, take a look at Django MD5 implementation: https://github.com/django/django/blob/master/django/contrib/auth/hashers.py#L329