Skip to main content

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).

Metadata

Release files for django-hashedpass 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-hashedpass 0.1.0
File Size Uploaded Provenance Actions
django-hashedpass-0.1.0.tar.gz 3.8 kB Without provenance Details for django-hashedpass-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-hashedpass 0.1.0
File Interpreter ABI Platform Actions
django_hashedpass-0.1.0-py3-none-any.whl Python 3 none any Details for django_hashedpass-0.1.0-py3-none-any.whl

Total release size: 8.7 kB

Release files / django-hashedpass-0.1.0.tar.gz

Download URL django-hashedpass-0.1.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e2c9928ed8da45765231ed285e1a00966d47b82c38faf9253a0091f5c377763f
BLAKE2b-256 checksum
How to use checksums
1f4fd7f0223cccf02e38f271110a1be9fcf738a71ad633b5a84214892a63cd73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.8

Release files / django_hashedpass-0.1.0-py3-none-any.whl

Download URL django_hashedpass-0.1.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
100d955cb6c29a8c396fa0ad537eb43e6fe75d8919d20066c3318c74de4f391e
BLAKE2b-256 checksum
How to use checksums
3008b66175a2a7e03b63ac86ab748c395a3a1fed832f43372788b57f74cb9875
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.8

Security for django-hashedpass 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page