Skip to content

Instantly share code, notes, and snippets.

Forked from steve-chavez/
Last active February 25, 2022 06:01
What would you like to do?
Use django hasher to make password
# you have to have a django project to do it this way
# You can run this in a `./ shell`
from django.contrib.auth.hashers import make_password
# this will output something that looks like this:
# 'pbkdf2_sha256$260000$rgjSFB3xwsxkfcL1iE8wq6$bDtiRY0+gtE4ahFdfDeHwy0tzLb8McDRnppS8kD8QJs='
# by default in Django 4.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment