I have a legacy users database which I would like to integrate into a new Django project.
The users passwords are saved in the old database with a plain and simple MD5 encryption(PHP md5() function), without any salting whatsoever.
Overriding the check_password and set_password of django.contrib.auth is not an option, since I already have new users active on the new Django project.
Looked into passlib, but unfortunately it doesn't do what is needed to be done on this specific project.
So basically, my only option is to convert the hashes somehow into the Django salted format, or implement a custom check_password method, that will determine if the password is plain MD5 or a django password(possibly even by a parameter in my Custom user model, something like legacy=True
boolean flag).
Any help is much appreciated.