georgemarshall / django-cryptography

Easily encrypt data in Django
https://django-cryptography.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
371 stars 70 forks source link

How to use HA1 field ? #14

Open mwolff44 opened 6 years ago

mwolff44 commented 6 years ago

How can I use your app to do this function

echo -n "username:realm:password" | md5sum

the 2 ist element is a field and the last one is the password

georgemarshall commented 6 years ago

Consider looking at how password fields are implemented in Django, as you appear to be looking for hashing functionality.

https://docs.djangoproject.com/en/2.0/topics/auth/passwords/ https://github.com/django/django/blob/master/django/contrib/auth/base_user.py#L47