Django management commands for changing users' hashed passwords.
Project description
django-hashedpass
Django management commands for changing users' hashed passwords.
Installation
Requirements: Django >= 2.2, Python >= 3.5.
Install:
$ pip install django-hashedpass
Then, edit your Django project's settings.py
file:
INSTALLED_APPS = [
# ...
'django_hashedpass', # NOTE: underscore (_), not dash (-).
# ...
]
Usage
-
changehashedpass
- Change a user's hashed password.$ python3 manage.py changehashedpass 'admin' 'pbkdf2_sha256$150000$yAhqE5ZDGEii$lD5JUoCuz6qRA+BVlvetFPGyGMwLmYl0rCc3awcNYLo=' Successfully changed the hashed password for "admin".
-
genhashedpass
- Generate a hashed password from a plaintext password.$ python3 manage.py genhashedpass Password: Password (again): pbkdf2_sha256$150000$ZOTZr0AKGQyW$y6+Bdqwn9UsP/riDoEaMQ9Q17Sw8zZoH1jxmlgy94oA=
$ python3 manage.py genhashedpass --password '123456' pbkdf2_sha256$150000$AnoGZfdqz6pW$GUGUJR5CggZA4e4JUMdtN8GU1CejLYTKs3PIdOnbF4k=
Development
To run unit tests: python3 ./run_tests.py
.
Tested on Django 2.22, Python 3.6.8, Ubuntu 18.04.
Project started on: 2019-07-21
License
This project is distributed under the BSD 3-Clause License (see LICENSE).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django_hashedpass-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 100d955cb6c29a8c396fa0ad537eb43e6fe75d8919d20066c3318c74de4f391e |
|
MD5 | 41b35307cf992869d41cdcd9862ac55f |
|
BLAKE2b-256 | 3008b66175a2a7e03b63ac86ab748c395a3a1fed832f43372788b57f74cb9875 |