Skip to main content

Reading Django's old abandoned password hashers

Project description

djlegacyhasher

Django application that provides reading django's old abandoned password hashers:

  • SHA1PasswordHasher
  • MD5PasswordHasher
  • UnsaltedSHA1PasswordHasher
  • UnsaltedMD5PasswordHasher

These classes can be used for read passwords from databases of legacy django projects that use corresponding hashing algorithms.

Quick setup

Put the app into INSTALLED_APPS in settings.py::

INSTALLED_APPS = [
    ...
    "legacyhasher",
]

To provide reading of one of old password hashing algorithms you need to add it's corresponding class into PASSWORD_HASHERS in settings.py, e.g.::

PASSWORD_HASHERS = [
    ...
    "legacyhasher.hashers.SHA1PasswordHasher",
]

This will allow you to read SHA1 salted passwords from database. Once user logs in with his password, password will be saved to database using default hashing algorithm.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djlegacyhasher-1.0.0.tar.gz (28.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djlegacyhasher-1.0.0-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

Details for the file djlegacyhasher-1.0.0.tar.gz.

File metadata

  • Download URL: djlegacyhasher-1.0.0.tar.gz
  • Upload date:
  • Size: 28.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.5

File hashes

Hashes for djlegacyhasher-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0d6d66bc326398899af5ee38555592e2f94e052045e8853e179936d94751f112
MD5 948f99b832086f59b797ed577970a311
BLAKE2b-256 ef7b1a849ed67409f702f221ae906c0a7d90cd42f34dbd8fdb30e7028152aa47

See more details on using hashes here.

File details

Details for the file djlegacyhasher-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for djlegacyhasher-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea9acfed13ee4cca721cfa783ab408d31ca1466d6193a8efcabdbb097cf24e68
MD5 1610b63e7d74ee2754fbe471945a0da8
BLAKE2b-256 bd0a1fe3d3e12683b336820ed0b73840bd2b35301e3ec27329df8292bca31ae7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page